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

List versions starting with a dot

This commit is contained in:
Maxime Brunet
2019-06-02 16:00:36 -04:00
parent 7dd50144d5
commit 2b174ab69f
3 changed files with 11 additions and 4 deletions

View File

@@ -5,9 +5,9 @@
# This hooks is intended to skip creating shims for those executables.
conda_exists() {
shopt -s nullglob
shopt -s dotglob nullglob
local condas=($(echo "${PYENV_ROOT}/versions/"*"/bin/conda" "${PYENV_ROOT}/versions/"*"/envs/"*"/bin/conda"))
shopt -u nullglob
shopt -u dotglob nullglob
[ -n "${condas}" ]
}