Sfoglia il codice sorgente

Support creating shims of virtual environments in `envs` (#103)

pull/106/head
Yamashita, Yuu 9 anni fa
parent
commit
7e821de319
1 ha cambiato i file con 11 aggiunte e 0 eliminazioni
  1. +11
    -0
      etc/pyenv.d/rehash/envs.bash

+ 11
- 0
etc/pyenv.d/rehash/envs.bash Vedi File

@ -0,0 +1,11 @@
virtualenv_list_executable_names() {
local file
shopt -s nullglob
for file in "$PYENV_ROOT"/versions/*/envs/*/bin/*; do
echo "${file##*/}"
done
shopt -u nullglob
}
if declare -f make_shims 1>/dev/null 2>&1; then
make_shims $(virtualenv_list_executable_names | sort -u)
fi

Caricamento…
Annulla
Salva