mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
docs(pyenv-prefix): note support for multiple versions (#2270)
This commit is contained in:
parent
7bc426e2be
commit
ee6ef20859
2 changed files with 8 additions and 8 deletions
|
@ -315,9 +315,9 @@ Displays the root directory where versions and shims are kept.
|
||||||
|
|
||||||
## `pyenv prefix`
|
## `pyenv prefix`
|
||||||
|
|
||||||
Displays the directory where a Python version is installed. If no
|
Displays the directories where the given Python versions are installed,
|
||||||
version is given, `pyenv prefix` displays the location of the
|
separated by colons. If no version is given, `pyenv prefix` displays the
|
||||||
currently selected version.
|
locations of the currently selected versions.
|
||||||
|
|
||||||
$ pyenv prefix 3.9.7
|
$ pyenv prefix 3.9.7
|
||||||
/home/user/.pyenv/versions/3.9.7
|
/home/user/.pyenv/versions/3.9.7
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Summary: Display prefix for a Python version
|
# Summary: Display prefixes for Python versions
|
||||||
# Usage: pyenv prefix [<version>]
|
# Usage: pyenv prefix [<version>...]
|
||||||
#
|
#
|
||||||
# Displays the directory where a Python version is installed. If no
|
# Displays the directories where the given Python versions are installed,
|
||||||
# version is given, `pyenv prefix' displays the location of the
|
# separated by colons. If no version is given, `pyenv prefix' displays the
|
||||||
# currently selected version.
|
# locations of the currently selected versions.
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
[ -n "$PYENV_DEBUG" ] && set -x
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
Loading…
Reference in a new issue