mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Add documentation for init command (#2125)
This commit is contained in:
parent
0388da7d0b
commit
c0d8b9cfe8
1 changed files with 13 additions and 1 deletions
14
COMMANDS.md
14
COMMANDS.md
|
@ -21,6 +21,7 @@ The most common subcommands are:
|
||||||
* [`pyenv prefix`](#pyenv-prefix)
|
* [`pyenv prefix`](#pyenv-prefix)
|
||||||
* [`pyenv hooks`](#pyenv-hooks)
|
* [`pyenv hooks`](#pyenv-hooks)
|
||||||
* [`pyenv shims`](#pyenv-shims)
|
* [`pyenv shims`](#pyenv-shims)
|
||||||
|
* [`pyenv init`](#pyenv-init)
|
||||||
* [`pyenv completions`](#pyenv-completions)
|
* [`pyenv completions`](#pyenv-completions)
|
||||||
|
|
||||||
## `pyenv commands`
|
## `pyenv commands`
|
||||||
|
@ -347,8 +348,19 @@ List existing pyenv shims.
|
||||||
/home/user/.pyenv/shims/python3-config
|
/home/user/.pyenv/shims/python3-config
|
||||||
/home/user/.pyenv/shims/python-config
|
/home/user/.pyenv/shims/python-config
|
||||||
|
|
||||||
|
## `pyenv init`
|
||||||
|
|
||||||
|
Configure the shell environment for pyenv
|
||||||
|
|
||||||
|
Usage: eval "$(pyenv init [-|--path] [--no-rehash] [<shell>])"
|
||||||
|
|
||||||
|
- 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`
|
## `pyenv completions`
|
||||||
|
|
||||||
Lists available completions for a given pyenv command.
|
Lists available completions for a given pyenv command.
|
||||||
|
|
||||||
Usage: pyenv completions <command> [arg1 arg2...]
|
Usage: pyenv completions <command> [arg1 arg2...]
|
||||||
|
|
Loading…
Reference in a new issue