make conditional on directoriy existing

[no ci]
This commit is contained in:
Ivan Pozdeev 2025-05-17 15:50:26 +03:00
parent d74e2bae77
commit 665a702011

View File

@ -336,15 +336,14 @@ See [Advanced configuration](#advanced-configuration) for details and more confi
~~~ fish ~~~ fish
set -Ux PYENV_ROOT $HOME/.pyenv set -Ux PYENV_ROOT $HOME/.pyenv
mkdir -p $PYENV_ROOT/bin test -d $PYENV_ROOT/bin; and fish_add_path $PYENV_ROOT/bin
fish_add_path $PYENV_ROOT/bin
~~~ ~~~
Otherwise, execute the snippet below: Otherwise, execute the snippet below:
~~~ fish ~~~ fish
set -Ux PYENV_ROOT $HOME/.pyenv set -Ux PYENV_ROOT $HOME/.pyenv
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
~~~ ~~~
Now, add this to `~/.config/fish/config.fish`: Now, add this to `~/.config/fish/config.fish`: