diff --git a/pyenv.d/rehash/conda.bash b/pyenv.d/rehash/conda.bash index 6febe61b..a45a9966 100644 --- a/pyenv.d/rehash/conda.bash +++ b/pyenv.d/rehash/conda.bash @@ -19,7 +19,7 @@ for shim in $(cat "${BASH_SOURCE%/*}/conda.d/"*".list" | sort | uniq | sed -e 's fi done shopt -u nullglob -eval "conda_shim(){ case \"\$1\" in ${shims[@]} *)return 1;;esac;}" +eval "conda_shim(){ case \"\${1##*/}\" in ${shims[@]} *)return 1;;esac;}" # override `make_shims` to avoid conflict between pyenv-virtualenv's `envs.bash` # https://github.com/pyenv/pyenv-virtualenv/blob/v20160716/etc/pyenv.d/rehash/envs.bash diff --git a/pyenv.d/rehash/source.bash b/pyenv.d/rehash/source.bash index f9e02ee3..3b329491 100644 --- a/pyenv.d/rehash/source.bash +++ b/pyenv.d/rehash/source.bash @@ -8,7 +8,7 @@ for shim in $(cat "${BASH_SOURCE%/*}/source.d/"*".list" | sort | uniq | sed -e ' fi done shopt -u nullglob -eval "source_shim(){ case \"\$1\" in ${shims[@]} *)return 1;;esac;}" +eval "source_shim(){ case \"\${1##*/}\" in ${shims[@]} *)return 1;;esac;}" cat > "${PROTOTYPE_SOURCE_SHIM_PATH}" <