Skip to content

Commit 82b6fc7

Browse files
committed
.settings: zsh compat
hide fish setup function inside a bash gate
1 parent 97c3390 commit 82b6fc7

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.settings

+9-7
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ fi
5959
## inject additional dirs
6060
export PATH="$USER_PATHS:$PATH"
6161

62-
function _setup_fish() {
63-
echo -n "Declaring fish_user_paths to be $USER_PATHS... "
64-
fish -c "set -e -U fish_user_paths; set -U fish_user_paths $USER_PATHS \$fish_user_paths"
65-
echo "done"
66-
}
67-
68-
export -f _setup_fish
62+
if [ -n "$BASHPID" ]; then
63+
function _setup_fish() {
64+
echo -n "Declaring fish_user_paths to be $USER_PATHS... "
65+
fish -c "set -e -U fish_user_paths; set -U fish_user_paths $USER_PATHS \$fish_user_paths"
66+
echo "done"
67+
}
68+
69+
export -f _setup_fish
70+
fi
6971

0 commit comments

Comments
 (0)