1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 10:28:00 +00:00

Remove the git-info SIGINT message

Users should read the Git module README on how to turn git-info on and
off.
This commit is contained in:
Sorin Ionescu 2013-05-17 21:17:44 -04:00
parent a7623aad6b
commit 39b88fe334

View File

@ -89,32 +89,6 @@ function _git-action {
return 1
}
# Instructs the user on how to turn off git-info for the current repository.
function _git-info-abort {
if ! is-true "$_git_info_executing"; then
return 1
fi
cat >&2 <<EOF
Gathering status for certain repositories is time intensive.
To turn off in-prompt Git status for this repository, execute:
git info off
To revert, execute:
git-info on
EOF
unset _git_info_executing
return 0
}
add-zsh-trap INT _git-info-abort
# Gets the Git status information.
function git-info {
# Extended globbing is needed to parse repository status.
@ -210,9 +184,6 @@ function git-info {
return 1
fi
# Used to abort git-info on SIGINT.
_git_info_executing=true
# Ignore submodule status.
zstyle -s ':prezto:module:git:status:ignore' submodules 'ignore_submodules'
@ -445,7 +416,6 @@ function git-info {
done
unset REPLY
unset _git_info_executing
return 0
}