瀏覽代碼

use __gitdir for detecting git rep

pull/1/head
10sr 11 年之前
父節點
當前提交
64d0803e13
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. +2
    -3
      bashrc

+ 2
- 3
bashrc 查看文件

@@ -572,9 +572,8 @@ GIT_PS1_SHOWUPSTREAM=t
__my_ps1_git(){
local last=$?
null type __git_ps1 || return $last
null git status || return $last # __gitdir seems to be able to be used
#test -n "`git status -s -uno`" && local star=\* # done by SHOWDIRTYSTATE
__git_ps1 "[GIT:$(__try_exec git config --get user.name):%s${star}]"
null __gitdir || return $last
__git_ps1 "[GIT:$(__try_exec git config --get user.name):%s]"
return $last
}
__my_ps1_ipaddr(){


Loading…
取消
儲存