1
0
Fork 0

zsh: disable prompt git info via a file flag

This commit is contained in:
Von Random 2019-07-12 19:34:51 +03:00
parent 4367a2e108
commit 3fd4e42864

1
zshrc
View file

@ -88,6 +88,7 @@ precmd.is_git_repo() {
typeset curr_dir=$PWD
while [[ -n $curr_dir ]]; do
if [[ -r $curr_dir/.git/HEAD ]]; then
[[ -e $curr_dir/.git/nozsh ]] && return 1
return 0
else
curr_dir=${curr_dir%/*}