blob: 0a94616448c151ff0eb017ba004247c4330043f4 (
plain) (
tree)
|
|
# POSIX-compatible version of the pyenv Bash shell wrapper
[ -d "$HOME"/.pyenv ] || return
pyenv() {
case $1 in
rehash)
shift
eval "$(pyenv sh-rehash "$@")"
;;
sh-rehash)
command pyenv "$@"
;;
shell)
shift
eval "$(pyenv sh-shell "$@")"
;;
*)
command pyenv "$@"
pyenv rehash
;;
esac
}
|