From 387552ef75f7e06e8425a2464924daadb12a42e3 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Tue, 25 Feb 2014 12:58:18 -0800 Subject: Adding git status to prompt --- base/bashrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base/bashrc b/base/bashrc index 66322c8..3642bd7 100644 --- a/base/bashrc +++ b/base/bashrc @@ -49,10 +49,12 @@ if [ -n "$force_color_prompt" ]; then fi fi +GIT_PS1_SHOWDIRTYSTATE=1 + if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else - PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' + PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(__git_ps1 " (%s)")\$ ' fi unset color_prompt force_color_prompt -- cgit v1.2.3