commit 5050303c319492b4a7b1bf5b2713e9b20ea22c86
parent 9baefb08005e7fc053b86feb736b6db43e0bfff8
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Thu, 12 Mar 2015 09:49:48 +0100
only use haskell for zsh git prompt if installed
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/.zshrc b/.zshrc
@@ -1,6 +1,9 @@
source ~/code/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/code/zsh-git-prompt/zshrc.sh
-GIT_PROMPT_EXECUTABLE='haskell'
+
+if command -v cabal 2>/dev/null; then
+ GIT_PROMPT_EXECUTABLE='haskell'
+fi
ZSH_THEME_GIT_PROMPT_CACHE=true
ARCH=$(uname)