Browse Source

fix: only match fish in rehash if SHELL ends with "fish"

master
andrewflbarnes 2 days ago
parent
commit
09af183cc8
No known key found for this signature in database
  1. 2
      libexec/jenv-sh-rehash

2
libexec/jenv-sh-rehash

@ -12,7 +12,7 @@ fi
jenv-rehash "$@" jenv-rehash "$@"
# Check if the shell is fish # Check if the shell is fish
if [[ "$SHELL" == *"fish"* ]] || [[ "$shell" == *"fish"* ]]; then if [[ "$SHELL" == *"fish" ]] || [[ "$shell" == *"fish" ]]; then
# no rehash support # no rehash support
: :
else else

Loading…
Cancel
Save