Skip to content

Commit

Permalink
.settings: zsh compat
Browse files Browse the repository at this point in the history
hide fish setup function inside
a bash gate
  • Loading branch information
avindra committed Jan 11, 2025
1 parent 97c3390 commit 82b6fc7
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .settings
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$BASHPID" ]; 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

0 comments on commit 82b6fc7

Please sign in to comment.