mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-22 16:03:36 +00:00
878bd87328
`$SHELL` variable is a terrible way of detecting the current shell because it's not even supposed to reflect the current shell; it's meant for keeping the value of the default shell for programs to start. If an explicit `<shell>` argument wasn't passed to `rbenv init`, it tries to detect the shell by getting the name of its parent process. If this fails, it falls back on the value of `$SHELL` as before. Furthermore, `rbenv init` will set the RBENV_SHELL variable in the current shell to the value of the detected shell so that `sh-shell` and `sh-rehash` commands don't have to repeat the detection. |
||
---|---|---|
.. | ||
rbenv | ||
rbenv---version | ||
rbenv-commands | ||
rbenv-completions | ||
rbenv-exec | ||
rbenv-global | ||
rbenv-help | ||
rbenv-hooks | ||
rbenv-init | ||
rbenv-local | ||
rbenv-prefix | ||
rbenv-rehash | ||
rbenv-root | ||
rbenv-sh-rehash | ||
rbenv-sh-shell | ||
rbenv-shims | ||
rbenv-version | ||
rbenv-version-file | ||
rbenv-version-file-read | ||
rbenv-version-file-write | ||
rbenv-version-name | ||
rbenv-version-origin | ||
rbenv-versions | ||
rbenv-whence | ||
rbenv-which |