aboutsummaryrefslogtreecommitdiff
path: root/plenv/shrc.d/plenv.sh
blob: 5848fd5be9c58526b49d6d9beb137d9c1c063cfb (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 plenv Bash shell wrapper
[ -d "$HOME"/.plenv ] || return
plenv() {
    case $1 in
        rehash)
            shift
            eval "$(plenv sh-rehash "$@")"
            ;;
        shell)
            shift
            eval "$(plenv sh-shell "$@")"
            ;;
        *)
            command plenv "$@"
            ;;
    esac
}
plenv rehash