|
|
@ -89,7 +89,7 @@ function _git-action {
|
|
|
|
return 1
|
|
|
|
return 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Turns off git-info for the current repository.
|
|
|
|
# Instructs the user on how to turn off git-info for the current repository.
|
|
|
|
function _git-info-abort {
|
|
|
|
function _git-info-abort {
|
|
|
|
if ! is-true "$_git_info_executing"; then
|
|
|
|
if ! is-true "$_git_info_executing"; then
|
|
|
|
return 1
|
|
|
|
return 1
|
|
|
@ -99,17 +99,18 @@ function _git-info-abort {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gathering status for certain repositories is time intensive.
|
|
|
|
Gathering status for certain repositories is time intensive.
|
|
|
|
By pressing CTRL + C, you have turned off prompt Git status
|
|
|
|
|
|
|
|
for this repository.
|
|
|
|
To turn off in-prompt Git status for this repository, execute:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
git info off
|
|
|
|
|
|
|
|
|
|
|
|
To revert, execute:
|
|
|
|
To revert, execute:
|
|
|
|
|
|
|
|
|
|
|
|
git-info on
|
|
|
|
git-info on
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
@ -209,7 +210,7 @@ function git-info {
|
|
|
|
return 1
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Used to abort and turn git-info off on SIGINT.
|
|
|
|
# Used to abort git-info on SIGINT.
|
|
|
|
_git_info_executing=true
|
|
|
|
_git_info_executing=true
|
|
|
|
|
|
|
|
|
|
|
|
# Ignore submodule status.
|
|
|
|
# Ignore submodule status.
|
|
|
|