From dfba9f7608840b02d9098dc00d01d3a7a51d3e42 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Wed, 30 May 2018 15:11:09 +0300 Subject: [PATCH] Update instructions for $PATH change in README Describe for Fish shell in details, prevent issues like #195 and #459. Reference: https://fishshell.com/docs/2.7/tutorial.html#tut_path --- README.md | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b2d4c20ef5..13b8cd2209 100644 --- a/README.md +++ b/README.md @@ -221,13 +221,25 @@ a systemwide install. 2. Add `~/.rbenv/bin` to your `$PATH` for access to the `rbenv` command-line utility. - ~~~ sh - $ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile - ~~~ - - **Ubuntu Desktop note**: Modify your `~/.bashrc` instead of `~/.bash_profile`. - - **Zsh note**: Modify your `~/.zshrc` file instead of `~/.bash_profile`. + * For **bash**: + ~~~ bash + $ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile + ~~~ + + * For **Ubuntu Desktop**: + ~~~ bash + $ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc + ~~~ + + * For **Zsh**: + ~~~ zsh + $ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc + ~~~ + + * For **Fish shell**: + ~~~ fish + $ set -Ux fish_user_paths $HOME/.rbenv/bin $fish_user_paths + ~~~ 3. Run `~/.rbenv/bin/rbenv init` and follow the instructions to set up rbenv integration with your shell. This is the step that will make