Explorar el Código

show star when git rep isnt clean

pull/1/head
10sr hace 11 años
padre
commit
ad9cdd0c82
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      bashrc

+ 3
- 1
bashrc Ver fichero

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


Cargando…
Cancelar
Guardar