diff --git a/pyenv.d/rehash/anaconda.bash b/pyenv.d/rehash/anaconda.bash new file mode 100644 index 00000000..dc1472a6 --- /dev/null +++ b/pyenv.d/rehash/anaconda.bash @@ -0,0 +1,123 @@ +# Anaconda comes with binaries of system packages (e.g. `openssl`, `curl`). +# Creating shims for those binaries will prevent pyenv users to run those +# commands normally when not using Anaconda. +# +# This hooks is intended to skip creating shims for those executables. + +conda_exists() { + shopt -s nullglob + local condas=($(echo "${PYENV_ROOT}/versions/"*"/bin/conda" "${PYENV_ROOT}/versions/"*"/envs/"*"/bin/conda")) + shopt -u nullglob + [ -n "${condas}" ] +} + +conda_shims() { + ## curl + cat <