Bash prompt

Tez binary_y2k2 at blueyonder.co.uk
Thu Jul 6 09:40:35 UTC 2006


Pupeno wrote:
> Hello,
> I see on .bashrc that there's code to make nicely colorful prompts in Bash, 
> yet, that code seems to never be run (maybe because the console is not 
> detected as xterm ?).
> I've tried with Konsole and Xterm. Any ideas[1] ?
>   
You have to uncomment the "
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
' " line and comment out the section above, from "case "$TERM" in" to
"esac",
or you could change "xterm-color)" to "xterm)", both should work, but
the 1st option will make all consoles color and the 2nd will make only
xterm color.

Tez






More information about the kubuntu-users mailing list