Deutsch English Français
Your feedback:
Did you like this page? vote3 Yes
vote2 Partly
vote1 No
Your comment?

Add your email address, if you want to get a response

Your name, if you like

Do not change this:
Feedback
Search

2004-10-10

Colored Prompt with chroot

LinuxDebianComputer
That's my new Bash prompt:
PS1="\[\033[1;30m\](\[\033[1;34m\]\$(cat /etc/debian_chroot 2>/dev/null)\[\033[1;30m\]) \[\033[1;31m\]\u\[\033[1;30m\]@\[\033[1;34m\]\h\[\033[1;30m\]:\$(pwd)/#\[\033[0m\] "

(UNSTABLE) tgunkel@thorsten:/home/tgunkel/tmp/#
Compared to the Debian default prompt:

if [ -f /etc/debian_chroot ]; then debian_chroot=$(cat /etc/debian_chroot); fi
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

(UNSTABLE)tgunkel@thorsten:~/tmp$
01-02-2005 13.35
Powered by PHP Created with Xemacs Valid rss 2.0! Valid XHTML 1.0! Valid CSS!