Browse Source

show star when git rep isnt clean

pull/1/head
10sr 12 years ago
parent
commit
ad9cdd0c82
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      bashrc

+ 3
- 1
bashrc View File

@@ -569,7 +569,9 @@ test -r /usr/share/git/git-prompt.sh && . /usr/share/git/git-prompt.sh
__my_ps1_git(){
local last=$?
null type __git_ps1 || return $last
__try_exec __git_ps1 "[GIT:$(__try_exec git config --get user.name):%s]"
null git status || return $last
test -n "`git status -s -uno`" && local star=\*
__git_ps1 "[GIT:$(__try_exec git config --get user.name):%s${star}]"
return $last
}
__my_ps1_ipaddr(){


Loading…
Cancel
Save