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