瀏覽代碼

Add documentation for init command (#2125)

pull/2132/head
amd-9 4 年之前
committed by GitHub
父節點
當前提交
c0d8b9cfe8
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 13 行新增1 行删除
  1. +13
    -1
      COMMANDS.md

+ 13
- 1
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] [<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`
Lists available completions for a given pyenv command.
Usage: pyenv completions <command> [arg1 arg2...]
Usage: pyenv completions <command> [arg1 arg2...]

Loading…
取消
儲存