From 91b8c4108685a20865fea337ef4b1ae2f26bdde3 Mon Sep 17 00:00:00 2001 From: Avindra Goolcharan Date: Fri, 10 Jan 2025 18:44:56 -0500 Subject: [PATCH] .settings: zsh compat hide fish setup function inside a bash gate --- .settings | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.settings b/.settings index 5971886..0913d17 100644 --- a/.settings +++ b/.settings @@ -59,11 +59,13 @@ fi ## inject additional dirs export PATH="$USER_PATHS:$PATH" -function _setup_fish() { - echo -n "Declaring fish_user_paths to be $USER_PATHS... " - fish -c "set -e -U fish_user_paths; set -U fish_user_paths $USER_PATHS \$fish_user_paths" - echo "done" -} - -export -f _setup_fish +if [[ -n $BASH_VERSINFO ]]; then + function _setup_fish() { + echo -n "Declaring fish_user_paths to be $USER_PATHS... " + fish -c "set -e -U fish_user_paths; set -U fish_user_paths $USER_PATHS \$fish_user_paths" + echo "done" + } + + export -f _setup_fish +fi