Created
April 11, 2012 00:07
-
Star
(113)
You must be signed in to star a gist -
Fork
(11)
You must be signed in to fork a gist
-
-
Save msabramo/2355834 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...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Awesome and thanks @liladas!
@avatar-lavventura, add this snippet just above the
source $ZSH/oh-my-zsh.sh
line in your ~/.zshrcAnd inside your desired (probably very large) git repo, run this command
git config --add oh-my-zsh.hide-dirty 1