summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc10
1 files changed, 6 insertions, 4 deletions
diff --git a/.zshrc b/.zshrc
index 30e8af3..91222a6 100644
--- a/.zshrc
+++ b/.zshrc
@@ -12,10 +12,12 @@ if [[ $TERM = "xterm-termite" ]]; then
export TERM=xterm-256color
fi
-# ruby gems
-for _dir in $HOME/.gem/ruby/*/bin; do
- export PATH=$_dir:$PATH
-done
+if [[ -e "$HOME/.gem/" ]]; then
+ # ruby gems
+ for _dir in $HOME/.gem/ruby/*/bin; do
+ export PATH=$_dir:$PATH
+ done
+fi
# add extra dirs/symlinks to path. allows to separate script bundles into dirs
for _dir in $HOME/bin/extra/*(/N,@N); do