aboutsummaryrefslogtreecommitdiff
path: root/pyenv/shrc.d/pyenv.sh
blob: 1c90f8f2c128ee732526d4ad845ab11c69f81ca2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# POSIX-compatible version of the pyenv Bash shell wrapper
[ -d "$HOME"/.pyenv ] || return
pyenv() {
    case $1 in
        rehash)
            shift
            eval "$(pyenv sh-rehash "$@")"
            ;;
        shell)
            shift
            eval "$(pyenv sh-shell "$@")"
            ;;
        *)
            command pyenv "$@"
            ;;
    esac
}
pyenv rehash