mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
Support creating shims of virtual environments in envs (#103)
This commit is contained in:
parent
0df362e8c8
commit
7e821de319
11
etc/pyenv.d/rehash/envs.bash
Normal file
11
etc/pyenv.d/rehash/envs.bash
Normal 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
|
||||
Loading…
Reference in a new issue