From ee6ef20859038d2058ed571b76aea6f656ae58f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 9 Mar 2022 04:33:01 +0200 Subject: [PATCH] docs(pyenv-prefix): note support for multiple versions (#2270) --- COMMANDS.md | 6 +++--- libexec/pyenv-prefix | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/COMMANDS.md b/COMMANDS.md index 5dc784f6..24a8d396 100644 --- a/COMMANDS.md +++ b/COMMANDS.md @@ -315,9 +315,9 @@ Displays the root directory where versions and shims are kept. ## `pyenv prefix` -Displays the directory where a Python version is installed. If no -version is given, `pyenv prefix` displays the location of the -currently selected version. +Displays the directories where the given Python versions are installed, +separated by colons. If no version is given, `pyenv prefix` displays the +locations of the currently selected versions. $ pyenv prefix 3.9.7 /home/user/.pyenv/versions/3.9.7 diff --git a/libexec/pyenv-prefix b/libexec/pyenv-prefix index 9cd0715d..e244e76a 100755 --- a/libexec/pyenv-prefix +++ b/libexec/pyenv-prefix @@ -1,10 +1,10 @@ #!/usr/bin/env bash -# Summary: Display prefix for a Python version -# Usage: pyenv prefix [] +# Summary: Display prefixes for Python versions +# Usage: pyenv prefix [...] # -# Displays the directory where a Python version is installed. If no -# version is given, `pyenv prefix' displays the location of the -# currently selected version. +# Displays the directories where the given Python versions are installed, +# separated by colons. If no version is given, `pyenv prefix' displays the +# locations of the currently selected versions. set -e [ -n "$PYENV_DEBUG" ] && set -x