pyenv/libexec/pyenv-shims

23 lines
380 B
Text
Raw Normal View History

#!/usr/bin/env bash
2013-01-18 03:41:41 -05:00
# 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
2014-01-02 08:26:22 -05:00
shopt -s nullglob
for command in "${PYENV_ROOT}/shims/"*; do
if [ "$1" = "--short" ]; then
echo "${command##*/}"
else
echo "$command"
fi
done | sort