diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-02-18 20:35:28 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-02-18 20:35:28 -0200 |
commit | e1773a7cc1643083bbaa03e61bcd8ff155b014f8 (patch) | |
tree | 4716e6680f74a322f76e4139aa81737915aada6e | |
parent | e56ad59baeb68aa49cb274aeb0b0ec742df06c72 (diff) | |
download | puppet-nodo-e1773a7cc1643083bbaa03e61bcd8ff155b014f8.tar.gz puppet-nodo-e1773a7cc1643083bbaa03e61bcd8ff155b014f8.tar.bz2 |
Adding debian chroot to command prompt
-rw-r--r-- | files/bin/prompt.sh | 2 | ||||
-rw-r--r-- | files/etc/bash.bashrc | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/files/bin/prompt.sh b/files/bin/prompt.sh index 85d7bff..bb92e25 100644 --- a/files/bin/prompt.sh +++ b/files/bin/prompt.sh @@ -30,7 +30,7 @@ function command_prompt() { status_color="${COLOR_RED_BOLD}" fi - PS1="(${status_color}${exit_status}${COLOR_NONE}) [${COLOR_RED}\D{%Y%m%d %H:%M:%S}${COLOR_NONE}] ${COLOR_GREEN}\u@\h${COLOR_NONE}:${COLOR_CYAN}\w${COLOR_NONE} \\$ " + PS1="(${status_color}${exit_status}${COLOR_NONE}) [${COLOR_RED}\D{%Y%m%d %H:%M:%S}${COLOR_NONE}] ${COLOR_CYAN}${debian_chroot:+($debian_chroot)}${COLOR_NONE}${COLOR_GREEN}\u@\h${COLOR_NONE}:${COLOR_CYAN}\w${COLOR_NONE} \\$ " PS2="${BOLD}>${OFF} " } diff --git a/files/etc/bash.bashrc b/files/etc/bash.bashrc index 22d06b1..5e594b7 100644 --- a/files/etc/bash.bashrc +++ b/files/etc/bash.bashrc @@ -16,7 +16,10 @@ if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then fi # set a fancy prompt (non-color, overwrite the one in /etc/profile) -PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' +#PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' + +# set a fancy prompt +. /usr/local/bin/prompt.sh # Commented out, don't overwrite xterm -T "title" -n "icontitle" by default. # If this is an xterm set the title to user@host:dir @@ -45,5 +48,3 @@ if [ -x /usr/lib/command-not-found ]; then fi } fi - -. /usr/local/bin/prompt.sh |