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 /pyenv | |
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 'pyenv')
-rw-r--r-- | pyenv/shrc.d/pyenv.sh | 5 |
1 files changed, 4 insertions, 1 deletions
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 |