summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2013-10-30 12:59:33 -0400
committerJune McEnroe <june@causal.agency>2013-10-30 12:59:33 -0400
commit802b878dcea340bc065b75568b8d70f777971690 (patch)
treece6a8e61671a7ccebd86fa076bf0e1f33d809f36
parentAdd auto-title stuff to zsh (diff)
downloadsrc-802b878dcea340bc065b75568b8d70f777971690.tar.gz
src-802b878dcea340bc065b75568b8d70f777971690.zip
Only load chruby if it exists
-rw-r--r--.zshrc8
1 files changed, 5 insertions, 3 deletions
diff --git a/.zshrc b/.zshrc
index ac96cd74..b0c15105 100644
--- a/.zshrc
+++ b/.zshrc
@@ -56,9 +56,11 @@ ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=yellow,bold'
 
 source ~/.zsh/z/z.sh
 
-source /usr/share/chruby/chruby.sh
-source /usr/share/chruby/auto.sh
-chruby ruby-2.0.0
+if [ -d /usr/share/chruby ]; then
+  source /usr/share/chruby/chruby.sh
+  source /usr/share/chruby/auto.sh
+  chruby ruby-2.0.0
+fi
 
 [[ -s /home/home/.nvm/nvm.sh ]] && . /home/home/.nvm/nvm.sh