]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Adding debian chroot to command prompt
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Feb 2011 22:35:28 +0000 (20:35 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Feb 2011 22:35:28 +0000 (20:35 -0200)
files/bin/prompt.sh
files/etc/bash.bashrc

index 85d7bff263bedb614b08483cf78d97197805b49d..bb92e25523aa8d53b99161051baae406e98a2aec 100644 (file)
@@ -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} "
 }
 
index 22d06b10478bbe7bd5a9ba8aa14e580eae18aa2b..5e594b7690dbf9b6813ba61e836c51896199bf89 100644 (file)
@@ -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