Ver a proveniência

show star when git rep isnt clean

pull/1/head
10sr há 11 anos
ascendente
cometimento
ad9cdd0c82
1 ficheiros alterados com 3 adições e 1 eliminações
  1. +3
    -1
      bashrc

+ 3
- 1
bashrc Ver ficheiro

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


Carregando…
Cancelar
Guardar