[Konsole-devel] [Bug 80725] wish: colour in PROMPT_COMMAND

Kurt V.Hindenburg kurt.hindenburg at kdemail.net
Tue Jan 4 15:25:17 UTC 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
        
http://bugs.kde.org/show_bug.cgi?id=80725        
kurt.hindenburg kdemail net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From kurt.hindenburg kdemail net  2005-01-04 16:25 -------
Why are you using PROMPT_COMMAND and not PS1?
Anyway, you can put colors in PS1.  Check out the bash help or google.  This is not really konsole related.

Here's a snippet of my .bashrc:

COLOR1="\[\033[0;36m\]"
COLOR2="\[\033[0;32m\]"
COLOR3="\[\033[0;31m\]"
COLOR4="\[\033[0;37m\]"
COLOR5="\[\033[1;32m\]"
COLOR6="\[\033[1;34m\]"

PS1="$COLOR2($COLOR6\u$COLOR5 $COLOR6\h$COLOR2)-($COLOR1\$(date +%H%M)$COLOR2)-($COLOR1\w$COLOR2)$COLOR1>$COLOR4 "
if [ "$TERM" != 'linux' ]; then
   PS1=$PS1"\[\e]30;\w\a\]"
fi
export PS1



More information about the konsole-devel mailing list