diff options
-rw-r--r-- | plenv/shrc.d/plenv.sh | 5 | ||||
-rw-r--r-- | pyenv/shrc.d/pyenv.sh | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/plenv/shrc.d/plenv.sh b/plenv/shrc.d/plenv.sh index 5848fd5b..bb52ffe2 100644 --- a/plenv/shrc.d/plenv.sh +++ b/plenv/shrc.d/plenv.sh @@ -6,13 +6,16 @@ plenv() { shift eval "$(plenv sh-rehash "$@")" ;; + sh-rehash) + command plenv "$@" + ;; shell) shift eval "$(plenv sh-shell "$@")" ;; *) command plenv "$@" + plenv rehash ;; esac } -plenv rehash diff --git a/pyenv/shrc.d/pyenv.sh b/pyenv/shrc.d/pyenv.sh index 1c90f8f2..0a946164 100644 --- a/pyenv/shrc.d/pyenv.sh +++ b/pyenv/shrc.d/pyenv.sh @@ -6,13 +6,16 @@ pyenv() { shift eval "$(pyenv sh-rehash "$@")" ;; + sh-rehash) + command pyenv "$@" + ;; shell) shift eval "$(pyenv sh-shell "$@")" ;; *) command pyenv "$@" + pyenv rehash ;; esac } -pyenv rehash |