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

Richard Neill kde at richardneill.org
Sat May 1 05:23:46 UTC 2004


------- 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      
           Summary: wish: colour in PROMPT_COMMAND
           Product: konsole
           Version: unspecified
          Platform: Mandrake RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: konsole-devel kde org
        ReportedBy: kde richardneill org


Version:            (using KDE KDE 3.2.0)
Installed from:    Mandrake RPMs

I have the  following in my .bashrc, which is great for renaming the icons in the konsole tab bar.

if test "$DISPLAY"; then
        export PROMPT_COMMAND='echo -ne "\033]30;`basename "$PWD"`/ \007\033]31;\007"'
fi


but ideally, I'd like to make this coloured. (Eg to add a red * when root) Could we have support for colour?
(I tried the standard shell colour escape codes, without success).


Also, it would be nice if this were documented in the konsole manual (I know it is in one of the startup tips), and if there were some sort of GUI for it. For example, I'd use:

local machine, directory is /home/me/foo/bar           ->     bar/
local machine, directory is /home/me/baz, as root      ->     *baz/  (the * is in red)
remote machine, called mocha, directory /home/me       ->     mocha:me/
database (psql -U DB_NAME)                             ->     DB_NAME



More information about the konsole-devel mailing list