mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-20 06:02:45 +08:00
checking plugins paths before adding them to PATH
This commit is contained in:
parent
3796f3b4be
commit
39e5f6004d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user