Skip to content

Instantly share code, notes, and snippets.

@zhlinh
Created October 10, 2015 02:40
Show Gist options
  • Save zhlinh/c22652c6134f43eb459d to your computer and use it in GitHub Desktop.
Save zhlinh/c22652c6134f43eb459d to your computer and use it in GitHub Desktop.
oh-my-zsh/lib/git.zsh. 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"
}
## other functions ... ##
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment