diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2014-02-25 12:58:18 -0800 |
---|---|---|
committer | Jesse Morgan <morganjm@amazon.com> | 2014-02-25 12:58:18 -0800 |
commit | 387552ef75f7e06e8425a2464924daadb12a42e3 (patch) | |
tree | 6c57e93c3e411d758fe0053a663fa8cdf7587a84 | |
parent | 6eff68c149c1014288074eea255cd2ccfe05ecf3 (diff) |
Adding git status to prompt
-rw-r--r-- | base/bashrc | 4 |
1 files changed, 3 insertions, 1 deletions
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 |