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

Loading…
Cancel
Save