diff --git a/plugins/plenv/plenv.load b/plugins/plenv/plenv.load index 42b202b..f496383 100644 --- a/plugins/plenv/plenv.load +++ b/plugins/plenv/plenv.load @@ -1,2 +1,7 @@ -_prepend_path $HOME/.plenv/bin -_prepend_path $HOME/.plenv/shims +if test -n "$PLENV_ROOT" + _prepend_path $PLENV_ROOT/bin + _prepend_path $PLENV_ROOT/shims +else + _prepend_path $HOME/.plenv/bin + _prepend_path $HOME/.plenv/shims +end