Skip to content

Instantly share code, notes, and snippets.

@hmaack
Forked from msabramo/git_prompt_info.zsh
Last active August 29, 2015 14:11
Show Gist options
  • Save hmaack/d6db434b678010190396 to your computer and use it in GitHub Desktop.
Save hmaack/d6db434b678010190396 to your computer and use it in GitHub Desktop.
fix for oh-my-zsh git-svn prompt slowness
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_CLEAN}${ZSH_THEME_GIT_PROMPT_SUFFIX}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment