From 1ba96a0584267853ff15e255bfae7afb39bceb7c Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 29 Jul 2013 15:42:44 +0100 Subject: zsh: check for gem directory and add bin folder to path if found --- zsh/zshrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'zsh') 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 ]] -- cgit 1.4.1