1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-16 07:13:53 -05:00

Support fish shell

This commit is contained in:
Yamashita Yuu
2013-08-15 21:27:52 +09:00
parent 403f4eb7a7
commit 93b536863f
7 changed files with 128 additions and 14 deletions

14
libexec/pyenv-fish-rehash Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e
[ -n "$PYENV_DEBUG" ] && set -x
# Provide pyenv completions
if [ "$1" = "--complete" ]; then
exec pyenv-rehash --complete
fi
# When pyenv shell integration is enabled, delegate to pyenv-rehash,
# then tell the shell to empty its command lookup cache.
pyenv-rehash
# FIXME: support fish
#echo "hash -r"