mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-16 23:33:45 -05:00
add fish shell support
This commit is contained in:
committed by
Mislav Marohnić
parent
caa4a8e228
commit
5bfec84432
@@ -7,7 +7,17 @@ if [ "$1" = "--complete" ]; then
|
||||
exec rbenv-rehash --complete
|
||||
fi
|
||||
|
||||
shell="$(basename "$SHELL")"
|
||||
|
||||
# When rbenv shell integration is enabled, delegate to rbenv-rehash,
|
||||
# then tell the shell to empty its command lookup cache.
|
||||
rbenv-rehash
|
||||
echo "hash -r 2>/dev/null || true"
|
||||
|
||||
case "$shell" in
|
||||
fish )
|
||||
# nothing to do
|
||||
;;
|
||||
* )
|
||||
echo "hash -r 2>/dev/null || true"
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user