On Fri, 22 Aug 1997 12:32:35 -0300 (EST), Daniel Doro Ferrante wrote: > > > Hi All ! > > Does anybody know how do I change colors in a bash prompt. I can >do it in tcsh, but no succes with bash... (even after reading the man).
#b/w prompt #PS1="\\h\\$ \\u [\\w] " #Pretty color prompt. Comment it out if your terminal doesn't support ANSI co #We must encase the ANSI codes in \[ and \] or else bash will have line lengt #problems. \e is a pretty form of the raw escape sequence PS1="\\[\\e[1;31m\\]\\h\\[\\e[0m\\]\\$ \\u [\\[\\e[1;34m\\]\\w\\[\\e[0m\\]] " ------------------------------------------------------------------------- http://www.psychosis.com/emc/ Elite MicroComputers 908-541-4214 http://www.psychosis.com/linux-router/ Linux Router Project -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .