Browse Source

Merge pull request #169 from dkowis/fix_rehash_for_fish

fix: Copying rbenv's way of handling rehash for fish
pull/434/head
Barnesly 2 years ago committed by GitHub
parent
commit
700558b471
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 10
      libexec/jenv-sh-rehash

10
libexec/jenv-sh-rehash

@ -10,4 +10,12 @@ fi @@ -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

Loading…
Cancel
Save