Skip to content

Instantly share code, notes, and snippets.

@sunnywx
Forked from msabramo/git_prompt_info.zsh
Created June 28, 2016 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunnywx/8bf002636b7261feee74bd9e79407a19 to your computer and use it in GitHub Desktop.
Save sunnywx/8bf002636b7261feee74bd9e79407a19 to your computer and use it in GitHub Desktop.
The slowness of my zsh prompt when in a git-svn managed directory was killing me. I improved it by removing the git status stuff that slows it down...
function git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$ZSH_THEME_GIT_PROMPT_SUFFIX"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment