From 1627f1ed1dd18ff90293247b31736537ee3d30c1 Mon Sep 17 00:00:00 2001 From: Bas van den Wollenberg Date: Tue, 9 Dec 2025 17:05:29 +0100 Subject: [PATCH] use fish_add_path --path instead of --global --path modifies $PATH directly, and $PATH is already a global. This way the universal $fish_user_paths stays intact. --- fish/.config/fish/config.fish | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index 2be0998..0fcf387 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -5,7 +5,7 @@ if status is-login && not set -q SSH_CLIENT && not set -q TMUX exit end -fish_add_path -g $HOME/.local/bin +fish_add_path -P $HOME/.local/bin if test -e /opt/homebrew/bin/brew eval (/opt/homebrew/bin/brew shellenv) @@ -20,7 +20,7 @@ end if command -q brew set brew_prefix (brew --prefix) set -agx PKG_CONFIG_PATH $brew_prefix/opt/*/lib/pkgconfig - fish_add_path -g $brew_prefix/opt/glibc/{,s}bin + fish_add_path -P $brew_prefix/opt/glibc/{,s}bin end if string match -q -- "*microsoft*" (uname -a) @@ -46,9 +46,7 @@ else if string match -q -- "*codam.nl*" $host #set -gx HOMEBREW_CORE_GIT_REMOTE "https://github.com/gromgit/homebrew-core-mojave" set -gx HOMEBREW_TEMP /Volumes/T7/homebrew/tmp - fish_add_path -g /Applications/CLion.app/Contents/bin/gdb/mac/bin - else # linux - end + fish_add_path -P /Applications/CLion.app/Contents/bin/gdb/mac/bin end type -q mise && mise activate fish | source -- 2.51.2