rbenv/libexec
Mislav Marohnić c3ba994ec2
rbenv init: modify shell config files instead of printing instructions (#1568)
When running `rbenv init`, typically during rbenv setup, users expected
their shell environment to be modified permanently. Instead, what the
command would do is print the instructions to the user and expect them
to edit their shell initialization files accordingly. This proved to
be unintuitive.

Now, running `rbenv init <shells>...` will modify the shell initialization
files of the following shells:

- bash: `~/.bash_profile` or `~/.bashrc` if the latter exists but the former does not
- zsh: `~/.zprofile` or `~/.zshrc` if the latter exists and mentions "rbenv"
- fish: `~/.config/fish/config.fish`

If no shells were specified on the command line, rbenv will try to detect
the current shell.

It should be safe to run `rbenv init` multiple times, as the command will
avoid modifying any shell startup file that already mentions "rbenv init".
2024-05-03 16:59:39 +02:00
..
rbenv fix dead link in comment 2023-05-13 00:14:21 -07:00
rbenv---version rbenv 1.2.0 2021-09-29 20:47:10 +02:00
rbenv-commands Clarify help text of some commands (#1567) 2024-04-29 14:20:47 +02:00
rbenv-completions Merge pull request #1448 from rbenv/command-to-type-P 2022-10-09 14:49:32 +02:00
rbenv-exec Clarify help text of some commands (#1567) 2024-04-29 14:20:47 +02:00
rbenv-global Remove support for legacy global version files 2015-12-28 22:05:00 -05:00
rbenv-help Use compsys completion system for zsh (#1569) 2024-05-03 16:57:16 +02:00
rbenv-hooks Use read -a to split output into an array (#1450) 2022-10-09 14:48:13 +02:00
rbenv-init rbenv init: modify shell config files instead of printing instructions (#1568) 2024-05-03 16:59:39 +02:00
rbenv-local Remove support for legacy version file 2015-12-28 21:34:07 -05:00
rbenv-prefix rbenv-prefix: do not silence rbenv-which for system version 2018-08-07 01:44:13 +02:00
rbenv-rehash Clarify help text of some commands (#1567) 2024-04-29 14:20:47 +02:00
rbenv-root Fix some issues reported by shellcheck 2017-11-29 16:20:51 +01:00
rbenv-sh-rehash Avoid invoking hash -r in fish 2013-10-31 20:18:14 +02:00
rbenv-sh-shell rbenv shell: properly declare global variables for zsh (#1566) 2024-04-29 14:20:21 +02:00
rbenv-shims tests galore 2013-03-07 15:07:32 -05:00
rbenv-version libexec/rbenv-version{,-origin}: move "missing rbenv-version-file detection" logic as per @mislav 2020-01-16 23:15:09 +08:00
rbenv-version-file version-file docs update (#1512) 2023-07-11 17:38:36 +02:00
rbenv-version-file-read Simplify version file read 2022-03-08 21:10:15 +02:00
rbenv-version-file-write Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-version-name Use read -a to split output into an array (#1450) 2022-10-09 14:48:13 +02:00
rbenv-version-origin Use read -a to split output into an array (#1450) 2022-10-09 14:48:13 +02:00
rbenv-versions Simplify resolving symlinks, remove native extension (#1428) 2022-09-22 11:34:02 +02:00
rbenv-whence Fix some issues reported by shellcheck 2017-11-29 16:20:51 +01:00
rbenv-which Use read -a to split output into an array (#1450) 2022-10-09 14:48:13 +02:00