checking plugins paths before adding them to PATH

This commit is contained in:
Bruno Pinto 2013-03-04 00:21:43 -03:00
parent 3796f3b4be
commit 39e5f6004d
3 changed files with 14 additions and 4 deletions

View File

@ -1 +1,3 @@
set PATH /usr/local/share/npm/bin $PATH
if test -d /usr/local/share/npm/bin
set PATH /usr/local/share/npm/bin $PATH
end

View File

@ -1 +1,3 @@
set PATH /usr/local/share/python $PATH
if test -d /usr/local/share/python
set PATH /usr/local/share/python $PATH
end

View File

@ -1,3 +1,9 @@
set PATH $HOME/.rbenv/bin $PATH
set PATH $HOME/.rbenv/shims $PATH
if test -d $HOME/.rbenv/bin
set PATH $HOME/.rbenv/bin $PATH
end
if test -d $HOME/.rbenv/shims
set PATH $HOME/.rbenv/shims $PATH
end
rbenv rehash >/dev/null ^&1