瀏覽代碼

show star when git rep isnt clean

pull/1/head
10sr 11 年之前
父節點
當前提交
ad9cdd0c82
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      bashrc

+ 3
- 1
bashrc 查看文件

@@ -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…
取消
儲存