pyenv.fish 234 B

123456789101112
  1. function pyenv
  2. set command $argv[1]
  3. set -e argv[1]
  4. switch "$command"
  5. case rehash shell
  6. source (pyenv "sh-$command" $argv | psub)
  7. case \*
  8. command pyenv "$command" $argv
  9. end
  10. end