diff --git a/pyenv.d/rehash/source.bash b/pyenv.d/rehash/source.bash new file mode 100644 index 00000000..c4f73da8 --- /dev/null +++ b/pyenv.d/rehash/source.bash @@ -0,0 +1,30 @@ +PROTOTYPE_SOURCE_SHIM_PATH="${SHIM_PATH}/.pyenv-source-shim" + +shims=() +for shim in $(cat "${BASH_SOURCE%/*}/source.txt"); do + if [ -n "${shim%%#*}" ]; then + shims[${#shims[*]}]="${shim})return 0;;" + fi +done +eval "source_shim(){ case \"\$1\" in ${shims[@]} *)return 1;;esac;}" + +cat > "${PROTOTYPE_SOURCE_SHIM_PATH}" <