From b3afb7c2a5fe29c62b8d548eda9e97e754f5b3cd Mon Sep 17 00:00:00 2001 From: David Kowis Date: Sat, 15 Jul 2017 22:56:33 -0500 Subject: [PATCH] Copying rbenv's way of handling rehash for fish --- libexec/jenv-sh-rehash | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libexec/jenv-sh-rehash b/libexec/jenv-sh-rehash index a8b8d6e..8edbb4f 100755 --- a/libexec/jenv-sh-rehash +++ b/libexec/jenv-sh-rehash @@ -10,4 +10,12 @@ fi # When jenv shell integration is enabled, delegate to jenv-rehash, # then tell the shell to empty its command lookup cache. jenv-rehash -echo "hash -r" + +case "$shell" in +fish ) + # no rehash support + ;; +* ) + echo "hash -r" + ;; +esac