diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-06-18 16:24:18 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-06-18 16:24:18 +1200 |
commit | 9988f4033dd0af225e65b631e585032c57e15e11 (patch) | |
tree | 043083ec065b1573f34a7e5313fb36c64887a00e /plenv/shrc.d | |
parent | Refactor mpd/ncmpcpp stuff completely (diff) | |
download | dotfiles-9988f4033dd0af225e65b631e585032c57e15e11.tar.gz dotfiles-9988f4033dd0af225e65b631e585032c57e15e11.zip |
Break plenv stuff into its own target
Diffstat (limited to 'plenv/shrc.d')
-rw-r--r-- | plenv/shrc.d/plenv.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/plenv/shrc.d/plenv.sh b/plenv/shrc.d/plenv.sh new file mode 100644 index 00000000..6e03618e --- /dev/null +++ b/plenv/shrc.d/plenv.sh @@ -0,0 +1,17 @@ +# 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 +} |