From c0d8b9cfe85c814ecf4407efa66f9ee75716ce28 Mon Sep 17 00:00:00 2001 From: amd-9 Date: Mon, 25 Oct 2021 15:30:50 +0300 Subject: [PATCH] Add documentation for init command (#2125) --- COMMANDS.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/COMMANDS.md b/COMMANDS.md index 240cd667..b07e0883 100644 --- a/COMMANDS.md +++ b/COMMANDS.md @@ -21,6 +21,7 @@ The most common subcommands are: * [`pyenv prefix`](#pyenv-prefix) * [`pyenv hooks`](#pyenv-hooks) * [`pyenv shims`](#pyenv-shims) +* [`pyenv init`](#pyenv-init) * [`pyenv completions`](#pyenv-completions) ## `pyenv commands` @@ -347,8 +348,19 @@ List existing pyenv shims. /home/user/.pyenv/shims/python3-config /home/user/.pyenv/shims/python-config +## `pyenv init` + +Configure the shell environment for pyenv + + Usage: eval "$(pyenv init [-|--path] [--no-rehash] [])" + + - Initialize shims directory, print PYENV_SHELL variable, completions path + and shell function + --path Print shims path + --no-rehash Add no rehash command to output + ## `pyenv completions` Lists available completions for a given pyenv command. - Usage: pyenv completions [arg1 arg2...] \ No newline at end of file + Usage: pyenv completions [arg1 arg2...]