bash prompt color - documentation?
Is there any documentation on manipulating the color of the bash prompt? I know it can be done. Cygwin does it on lesser operating systems. I've been trying to find where this is documented, and i can't seem to find anything. Does anybody know? STH
jvollmer@visi.com
Is there any documentation on manipulating the color of the bash prompt? I know it can be done. Cygwin does it on lesser operating systems. I've been trying to find where this is documented, and i can't seem to find anything. Does anybody know?
Everything you need to know - and more is at: http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO -- JAY VOLLMER JVOLLMER@VISI.COM TEXT REFS DOUBLEPLUSUNGOOD SELFTHINK VERGING CRIMETHINK IGNORE FULLWISE
On Saturday 22 March 2003 03:31 pm, Jay Vollmer wrote:
jvollmer@visi.com
Is there any documentation on manipulating the color of the bash prompt? I know it can be done. Cygwin does it on lesser operating systems. I've been trying to find where this is documented, and i can't seem to find anything. Does anybody know?
Everything you need to know - and more is at:
http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO
-- JAY VOLLMER JVOLLMER@VISI.COM TEXT REFS DOUBLEPLUSUNGOOD SELFTHINK VERGING CRIMETHINK IGNORE FULLWISE
Thanks. This is what I came up with after playing with things for a few minutes. # some colors export black="\[\033[0;30m\]" export dark_gray="\[\033[1;30m\]" export blue="\[\033[0;34m\]" export light_blue="\[\033[1;34m\]" export green="\[\033[0;32m\]" export light_green="\[\033[1;32m\]" export cyan="\[\033[0;36m\]" export light_cyan="\[\033[1;36m\]" export red="\[\033[0;31m\]" export light_red="\[\033[1;31m\]" export purple="\[\033[0;35m\]" export light_purple="\[\033[1;35m\]" export brown="\[\033[0;33m\]" export yellow="\[\033[1;33m\]" export light_gray="\[\033[0;37m\]" export white="\[\033[1;37m\]" export no_color="\[\033[0m\]" export inverse_color="\[\033[7m\]" export blue_bg="\[\033[0;44m\]" export gray_bg="\[\033[0;47m\]" PATH=$PATH:~/opt/bin PS1="$blue\u@\h:\w/$red\n\d \t$no_color:> "
Another place to look for examples, not sure if they have downloads or not... http://www.dotfiles.com Good Luck, Mike S. "So I went by, 'cause I had the time. Told the northern lights to keep shining. They told me to tell you they're waving." - Tori Amos. -----Original Message----- From: Steven T. Hatton [mailto:hattons@speakeasy.net] Sent: Saturday, March 22, 2003 2:46 PM To: suse-linux-e@suse.com Subject: [SLE] bash prompt color - documentation? Is there any documentation on manipulating the color of the bash prompt? I know it can be done. Cygwin does it on lesser operating systems. I've been trying to find where this is documented, and i can't seem to find anything. Does anybody know? STH -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
participants (3)
-
Jay Vollmer
-
Michael Sacco
-
Steven T. Hatton