mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
0f596d2504
This reverts commit070e1c859f
, reversing changes made to3faeda67bb
.
22 lines
380 B
Bash
Executable file
22 lines
380 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Summary: List existing pyenv shims
|
|
# Usage: pyenv shims [--short]
|
|
|
|
set -e
|
|
[ -n "$PYENV_DEBUG" ] && set -x
|
|
|
|
# Provide pyenv completions
|
|
if [ "$1" = "--complete" ]; then
|
|
echo --short
|
|
exit
|
|
fi
|
|
|
|
shopt -s nullglob
|
|
|
|
for command in "${PYENV_ROOT}/shims/"*; do
|
|
if [ "$1" = "--short" ]; then
|
|
echo "${command##*/}"
|
|
else
|
|
echo "$command"
|
|
fi
|
|
done | sort
|