Parcourir la source

show star when git rep isnt clean

pull/1/head
10sr il y a 11 ans
Parent
révision
ad9cdd0c82
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. +3
    -1
      bashrc

+ 3
- 1
bashrc Voir le fichier

@@ -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(){


Chargement…
Annuler
Enregistrer