mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
using _append_path function on plugins
This commit is contained in:
parent
00236e5af3
commit
18a33690fe
@ -1,6 +1,4 @@
|
|||||||
### Main program
|
### Main program
|
||||||
if test -d /usr/local/share/npm/bin
|
_append_path /usr/local/share/npm/bin
|
||||||
set PATH /usr/local/share/npm/bin $PATH
|
|
||||||
end
|
|
||||||
|
|
||||||
set PATH ./node_modules/.bin $PATH
|
set PATH ./node_modules/.bin $PATH
|
||||||
|
@ -1,7 +1,2 @@
|
|||||||
if test -d $HOME/.plenv/bin
|
_append_path $HOME/.plenv/bin
|
||||||
set PATH $HOME/.plenv/bin $PATH
|
_append_path $HOME/.plenv/shims
|
||||||
end
|
|
||||||
|
|
||||||
if test -d $HOME/.plenv/shims
|
|
||||||
set PATH $HOME/.plenv/shims $PATH
|
|
||||||
end
|
|
||||||
|
@ -1,15 +1,7 @@
|
|||||||
if test -n "$PYENV_ROOT"
|
if test -n "$PYENV_ROOT"
|
||||||
if test -d $PYENV_ROOT/bin
|
_append_path $PYENV_ROOT/bin
|
||||||
set PATH $PYENV_ROOT/bin $PATH
|
_append_path $PYENV_ROOT/shims
|
||||||
end
|
|
||||||
if test -d $PYENV_ROOT/shims
|
|
||||||
set PATH $PYENV_ROOT/shims $PATH
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
if test -d $HOME/.pyenv/bin
|
_append_path $HOME/.pyenv/bin
|
||||||
set PATH $HOME/.pyenv/bin $PATH
|
_append_path $HOME/.pyenv/shims
|
||||||
end
|
|
||||||
if test -d $HOME/.pyenv/shims
|
|
||||||
set PATH $HOME/.pyenv/shims $PATH
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
if test -d /usr/local/share/python
|
_append_path /usr/local/share/python
|
||||||
set PATH /usr/local/share/python $PATH
|
|
||||||
end
|
|
||||||
|
|
||||||
|
@ -1,17 +1,7 @@
|
|||||||
if test -n "$RBENV_ROOT"
|
if test -n "$RBENV_ROOT"
|
||||||
if test -d $RBENV_ROOT/bin
|
_append_path $RBENV_ROOT/bin
|
||||||
set PATH $RBENV_ROOT/bin $PATH
|
_append_path $RBENV_ROOT/shims
|
||||||
end
|
|
||||||
|
|
||||||
if test -d $RBENV_ROOT/shims
|
|
||||||
set PATH $RBENV_ROOT/shims $PATH
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
if test -d $HOME/.rbenv/bin
|
_append_path $HOME/.rbenv/bin
|
||||||
set PATH $HOME/.rbenv/bin $PATH
|
_append_path $HOME/.rbenv/shims
|
||||||
end
|
|
||||||
|
|
||||||
if test -d $HOME/.rbenv/shims
|
|
||||||
set PATH $HOME/.rbenv/shims $PATH
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user