From 3d987e491ecfe3c3959821aab62e623a46be0687 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Thu, 27 Feb 2025 15:33:24 +0200 Subject: [PATCH] chore(config): fish: add cargo bin, pyenv init Signed-off-by: Ismo Vuorinen --- config/fish/exports.fish | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/fish/exports.fish b/config/fish/exports.fish index a59a097..b404d14 100644 --- a/config/fish/exports.fish +++ b/config/fish/exports.fish @@ -19,6 +19,9 @@ set -q HOSTNAME; or set -x HOSTNAME (hostname -s) # Add local bin to path fish_add_path "$XDG_BIN_HOME" +# Add cargo bin to path +fish_add_path "$XDG_SHARE_HOME/cargo/bin" + # NPM configuration set -q NPM_CONFIG_PREFIX; or set -x NPM_CONFIG_PREFIX "$XDG_DATA_HOME/npm" fish_add_path "$NPM_CONFIG_PREFIX/bin" @@ -107,6 +110,9 @@ set -q OP_CACHE; or set -x OP_CACHE "$XDG_STATE_HOME/1password" set -q WORKON_HOME; or set -x WORKON_HOME "$XDG_DATA_HOME/virtualenvs" set -q PYENV_ROOT; or set -x PYENV_ROOT "$XDG_DATA_HOME/pyenv" fish_add_path "$PYENV_ROOT/bin" +if x-have pyenv; and not functions -q pyenv + status --is-interactive; and source (pyenv init - | psub) +end # Poetry configuration set -q POETRY_HOME; or set -x POETRY_HOME "$XDG_DATA_HOME/poetry"