Browse Source

Merge pull request #443 from tsonglew/patch-1

Fix check shell is fish to support both uppercase and lowercase
master
Barnesly 2 days ago committed by GitHub
parent
commit
20a334f38d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 11
      libexec/jenv-sh-rehash

11
libexec/jenv-sh-rehash

@ -11,11 +11,10 @@ fi @@ -11,11 +11,10 @@ fi
# then tell the shell to empty its command lookup cache.
jenv-rehash "$@"
case "$shell" in
fish )
# Check if the shell is fish
if [[ "$SHELL" == *"fish"* ]] || [[ "$shell" == *"fish"* ]]; then
# no rehash support
;;
* )
:
else
echo "hash -r"
;;
esac
fi

Loading…
Cancel
Save