Am Mo, den 14.06.2004 schrieb Chadley Wilson um 14:13: > I would like to have a message displayed when users open the terminal. > This I can do! But. > I would like that message to be a certain colour, > I also want to change the prompt to a different colour, > The bash beginners guide is very clear on this. > Any suggestions :-> http://www.faqs.org/docs/Linux-HOWTO/Bash-Prompt-HOWTO.html I.e. I have in my ~/.bashrc export PS1='\n\[\033[1;34m\][\d \t]\[\033[00m\] \[\033[0;31m\][\u@\h]\[\033[00m\] \[\033[0;36m\]<`tty | sed -e "s:/dev/::"`>\[\033[00m\] \[\033[0;33m\]`pwd`\[\033[00m\]\n\[\033[1;31m\]\n\W\[\033[00m\] $ ' [it is a single line without wrappings!] Using the /etc/issue[.net] file following the same instructions on building up ANSI color sequences. http://www.bfraser.fsnet.co.uk/tut1.txt Alexander P.S. google is a friend -- Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13 Fedora GNU/Linux Core 2 (Tettnang) on Athlon CPU kernel 2.6.6-1.427 Serendipity 15:00:25 up 11:34, 9 users, 0.68, 0.64, 0.44
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil