Created
March 24, 2015 01:10
-
-
Save prologic/15d03ec5ec1f4cbd8a22 to your computer and use it in GitHub Desktop.
created by github.com/tr3buchet/gister
This file contains hidden or 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
commit 64cb4acd8381dd7e3bd55794e353197ba5e6d560 | |
Author: James Mills <[email protected]> | |
Date: Tue Mar 24 11:10:23 2015 +1000 | |
Fix zsh git status slowness | |
diff --git a/users/jmills/.zshrc b/users/jmills/.zshrc | |
index 98bd7f3..c1c6188 100644 | |
--- a/users/jmills/.zshrc | |
+++ b/users/jmills/.zshrc | |
@@ -78,3 +78,9 @@ export PATH="/srv/www/finda/current/bin:/usr/local/bin:/bin:/usr/bin:/home/vagra | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
+ | |
+# XXX: http://marc-abramowitz.com/archives/2012/04/10/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_SUFFIX" | |
+} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment