summary refs log tree commit diff
path: root/.zsh
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2013-10-30 12:59:33 -0400
committerJune McEnroe <programble@gmail.com>2013-10-30 12:59:33 -0400
commitb4d531589a5ad1226e8d3952a85d5344abc0b9e4 (patch)
treed080b93d342a951bc193930a9441cf61d8a664b0 /.zsh
parentAdd auto-title stuff to zsh (diff)
downloadsrc-b4d531589a5ad1226e8d3952a85d5344abc0b9e4.tar.gz
src-b4d531589a5ad1226e8d3952a85d5344abc0b9e4.zip
Only load chruby if it exists
Diffstat (limited to '')
-rw-r--r--.zshrc8
1 files changed, 5 insertions, 3 deletions
diff --git a/.zshrc b/.zshrc
index cca264aa..e258a29e 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/curtis/.nvm/nvm.sh ]] && . /home/curtis/.nvm/nvm.sh