aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-07-18 17:27:45 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-07-18 17:27:45 -0300
commit0940df9ac2719a1a4735cb8f4fd5a66b378a8925 (patch)
tree61bfbf36b444dc4fd72e094c0f13f0abe7df77dd /files
parentb58018646aaee98e34c6478371daf0a52161576e (diff)
downloadpuppet-nodo-0940df9ac2719a1a4735cb8f4fd5a66b378a8925.tar.gz
puppet-nodo-0940df9ac2719a1a4735cb8f4fd5a66b378a8925.tar.bz2
Adding git branch into PS1
Diffstat (limited to 'files')
-rw-r--r--files/bin/prompt.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/files/bin/prompt.sh b/files/bin/prompt.sh
index 159ef77..84112bb 100644
--- a/files/bin/prompt.sh
+++ b/files/bin/prompt.sh
@@ -30,7 +30,11 @@ 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_CYAN}${debian_chroot:+($debian_chroot) }${COLOR_NONE}${COLOR_GREEN}\u@\h${COLOR_NONE}:${COLOR_CYAN}\w${COLOR_NONE} \\$ "
+ # Without git completion
+ #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} \\$ "
+
+ # With git completion
+ 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$(__git_ps1 " (%s)")${COLOR_NONE} \\$ "
PS2="${BOLD}>${OFF} "
}