summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2013-07-29 15:42:44 +0100
committerAlan Pearce2013-07-29 15:42:44 +0100
commit1ba96a0584267853ff15e255bfae7afb39bceb7c (patch)
treeb625914c21ee7583ae9c9e89cd270361130d4b7a
parentb17e1928f120ba559929754a26e77b0c04d0aeb9 (diff)
downloadnixfiles-1ba96a0584267853ff15e255bfae7afb39bceb7c.tar.lz
nixfiles-1ba96a0584267853ff15e255bfae7afb39bceb7c.tar.zst
nixfiles-1ba96a0584267853ff15e255bfae7afb39bceb7c.zip
zsh: check for gem directory and add bin folder to path if found
-rwxr-xr-xzsh/zshrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index c017029f..3bf6e3b9 100755
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -10,6 +10,13 @@ then
 		$defpath
 		~/bin
 	)
+	if [[ -d ~/.gem/ruby ]]
+	then
+		path=(
+			$path
+			~/.gem/ruby/*/bin
+		)
+	fi
 fi
 
 if [[ ! -d ~/.zsh/cache ]]