README: fix erroneous extra indents in code blocks

This commit is contained in:
Ivan Pozdeev 2025-05-18 12:26:50 +03:00
parent 018ca73444
commit 6c86ae4175

View File

@ -222,9 +222,9 @@ See [Advanced configuration](#advanced-configuration) for details and more confi
<details> <details>
```zsh ```zsh
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(pyenv init - zsh)"' >> ~/.zshrc echo 'eval "$(pyenv init - zsh)"' >> ~/.zshrc
``` ```
If you wish to get Pyenv in noninteractive login shells as well, also add the commands to `~/.zprofile` or `~/.zlogin`. If you wish to get Pyenv in noninteractive login shells as well, also add the commands to `~/.zprofile` or `~/.zlogin`.
@ -236,19 +236,19 @@ See [Advanced configuration](#advanced-configuration) for details and more confi
1. If you have Fish 3.2.0 or newer, execute this interactively: 1. If you have Fish 3.2.0 or newer, execute this interactively:
```fish ```fish
set -Ux PYENV_ROOT $HOME/.pyenv set -Ux PYENV_ROOT $HOME/.pyenv
test -d $PYENV_ROOT/bin; and fish_add_path $PYENV_ROOT/bin test -d $PYENV_ROOT/bin; and fish_add_path $PYENV_ROOT/bin
``` ```
2. Otherwise, execute the snippet below: 2. Otherwise, execute the snippet below:
```fish ```fish
set -Ux PYENV_ROOT $HOME/.pyenv set -Ux PYENV_ROOT $HOME/.pyenv
test -d $PYENV_ROOT/bin; and set -U fish_user_paths $PYENV_ROOT/bin $fish_user_paths test -d $PYENV_ROOT/bin; and set -U fish_user_paths $PYENV_ROOT/bin $fish_user_paths
``` ```
3. Now, add this to `~/.config/fish/config.fish`: 3. Now, add this to `~/.config/fish/config.fish`:
```fish ```fish
pyenv init - fish | source pyenv init - fish | source
``` ```
</details> </details>