Browse Source

Fix check shell is fish to support both uppercase and lowercase

pull/443/head
Tsonglew 1 year ago committed by GitHub
parent
commit
54f95f6758
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 15
      libexec/jenv-sh-rehash

15
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 )
# no rehash support
;;
* )
echo "hash -r"
;;
esac
# Check if the shell is fish
if [[ "$SHELL" == *"fish"* ]] || [[ "$shell" == *"fish"* ]]; then
# no rehash support
:
else
echo "hash -r"
fi

Loading…
Cancel
Save