1
0
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:
Yamashita Yuu
2013-08-15 23:01:13 +09:00
committed by Mislav Marohnić
parent caa4a8e228
commit 5bfec84432
6 changed files with 129 additions and 15 deletions

View File

@@ -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