diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-05-17 15:56:46 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-05-17 16:04:49 +1200 |
commit | 0706f32a65d51ed35cbc5f732bd2ccef2600dfca (patch) | |
tree | 55f2e25b330df9b35cf8937c48ac3bcd35b0f8ff /plenv | |
parent | Merge branch 'release/v8.39.0' into develop (diff) | |
download | dotfiles-0706f32a65d51ed35cbc5f732bd2ccef2600dfca.tar.gz dotfiles-0706f32a65d51ed35cbc5f732bd2ccef2600dfca.zip |
Rehash plenv/pyenv on usage, not shell startup
Probably a better place for it; it's too slow otherwise.
Diffstat (limited to 'plenv')
-rw-r--r-- | plenv/shrc.d/plenv.sh | 5 |
1 files changed, 4 insertions, 1 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 |