From bb08cb5227e4f446fb34d9f6fe0da280dc22f475 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Sat, 1 Sep 2012 17:08:09 +1000 Subject: [PATCH] bash: Show Git status in prompt --- .bash/colors | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bash/colors b/.bash/colors index a3cc78e..9ad254a 100644 --- a/.bash/colors +++ b/.bash/colors @@ -67,7 +67,7 @@ if [ ${PS1_COLOR:-0} -eq 1 ]; then fi PS1='${debian_chroot:+($debian_chroot)}' PS1="$PS1"'\[\033[00;31m\]\u@\h\[\033[00m\]:\[\033[00;34m\]\w\[\033[00m\]' - PS1="$PS1"'\[\033[00;36m\]$(__git_ps1 2>/dev/null)\[\033[00m\]' + PS1="$PS1"'\[\033[00;36m\]$(__git_ps1 2>/dev/null && git status --porcelain 2>/dev/null|cut -c1,2|sort -u|tr -d " \n")\[\033[00m\]' PS1="$PS1"'\n\$ ' if [ ${DARK} -eq 0 ]; then -- 2.39.2