mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-01 05:59:39 -05:00
18 lines
292 B
Text
18 lines
292 B
Text
|
#!/usr/bin/env bash
|
||
|
set -e
|
||
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||
|
|
||
|
# Provide pyenv completions
|
||
|
if [ "$1" = "--complete" ]; then
|
||
|
echo --short
|
||
|
exit
|
||
|
fi
|
||
|
|
||
|
for command in "${PYENV_ROOT}/shims/"*; do
|
||
|
if [ "$1" = "--short" ]; then
|
||
|
echo "${command##*/}"
|
||
|
else
|
||
|
echo "$command"
|
||
|
fi
|
||
|
done | sort
|