
This reverts commit 070e1c859fb2584c3dbe0a6fbe58cbc80938654e, reversing changes made to 3faeda67bb33e07750d1a104271369a7384ca45c.
23 lines
380 B
Bash
Executable File
23 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
|