zsh: disable prompt git info via a file flag
This commit is contained in:
parent
4367a2e108
commit
3fd4e42864
1 changed files with 1 additions and 0 deletions
1
zshrc
1
zshrc
|
@ -88,6 +88,7 @@ precmd.is_git_repo() {
|
||||||
typeset curr_dir=$PWD
|
typeset curr_dir=$PWD
|
||||||
while [[ -n $curr_dir ]]; do
|
while [[ -n $curr_dir ]]; do
|
||||||
if [[ -r $curr_dir/.git/HEAD ]]; then
|
if [[ -r $curr_dir/.git/HEAD ]]; then
|
||||||
|
[[ -e $curr_dir/.git/nozsh ]] && return 1
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
curr_dir=${curr_dir%/*}
|
curr_dir=${curr_dir%/*}
|
||||||
|
|
Loading…
Reference in a new issue