1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-17 07:43:46 -05:00

import trivial changes from rbenv 0.4.0

This commit is contained in:
Yamashita Yuu
2013-01-18 18:57:08 +09:00
parent 684f7b7f21
commit fca31c4307
12 changed files with 136 additions and 85 deletions

13
libexec/pyenv-sh-rehash Executable file
View File

@@ -0,0 +1,13 @@
#!/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
echo "hash -r"