You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
361 B

  1. #!/usr/bin/env bash
  2. # Summary: List existing pyenv shims
  3. # Usage: pyenv shims [--short]
  4. set -e
  5. [ -n "$PYENV_DEBUG" ] && set -x
  6. # Provide pyenv completions
  7. if [ "$1" = "--complete" ]; then
  8. echo --short
  9. exit
  10. fi
  11. for command in "${PYENV_ROOT}/shims/"*; do
  12. if [ "$1" = "--short" ]; then
  13. echo "${command##*/}"
  14. else
  15. echo "$command"
  16. fi
  17. done | sort