aboutsummaryrefslogtreecommitdiff
path: root/plenv/shrc.d/plenv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'plenv/shrc.d/plenv.sh')
-rw-r--r--plenv/shrc.d/plenv.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/plenv/shrc.d/plenv.sh b/plenv/shrc.d/plenv.sh
index 5848fd5b..bb52ffe2 100644
--- a/plenv/shrc.d/plenv.sh
+++ b/plenv/shrc.d/plenv.sh
@@ -6,13 +6,16 @@ plenv() {
shift
eval "$(plenv sh-rehash "$@")"
;;
+ sh-rehash)
+ command plenv "$@"
+ ;;
shell)
shift
eval "$(plenv sh-shell "$@")"
;;
*)
command plenv "$@"
+ plenv rehash
;;
esac
}
-plenv rehash