diff --git a/modules/git/functions/git-info b/modules/git/functions/git-info index 9911310..1c16396 100644 --- a/modules/git/functions/git-info +++ b/modules/git/functions/git-info @@ -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 }