您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

22 行
380 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. shopt -s nullglob
  12. for command in "${PYENV_ROOT}/shims/"*; do
  13. if [ "$1" = "--short" ]; then
  14. echo "${command##*/}"
  15. else
  16. echo "$command"
  17. fi
  18. done | sort