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. 15
      libexec/jenv-sh-rehash

15
libexec/jenv-sh-rehash

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

Loading…
Cancel
Save