1
0
Fork 0

Git-info: remove auto-disable-if-CTRL+C feature

Upon CTRL+C, instruct users on how to manually disable git prompt.
pull/394/head
Oren Held 12 years ago
parent f4d9b32de9
commit bafc66e232

@ -98,18 +98,15 @@ function _git-info-abort {
cat >&2 <<EOF cat >&2 <<EOF
Gathering status for certain repositories is time intensive. Caught CTRL + C while gathering info for zsh git prompt.
By pressing CTRL + C, you have turned off prompt Git status
for this repository.
To revert, execute: This process may be time-intensive for certain repositories.
git-info on To disable zsh git prompt for this repository, execute:
git-info off
EOF EOF
unset _git_info_executing unset _git_info_executing
git config --bool prompt.showinfo false
git-info
return 0 return 0
} }
add-zsh-trap INT _git-info-abort add-zsh-trap INT _git-info-abort

Loading…
Cancel
Save