zsh: disable prompt git info via a file flag

master
Von Random 3 years ago
parent 4367a2e108
commit 3fd4e42864
  1. 1
      zshrc

@ -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%/*}

Loading…
Cancel
Save