Skip to content

Commit 0f25a51

Browse files
branchvmxcl
authored andcommitted
fix(fish): eagerly load shell magic
1 parent a13d6aa commit 0f25a51

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

install.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,10 @@ check_shell_magic() {
315315

316316
if gum confirm 'magic?' --affirmative="add one-liner" --negative="skip"
317317
then
318-
"$SHELL" -c "function add_tea_environment --on-variable PWD; source <(teal -Eds|psub); end; funcsave add_tea_environment >/dev/null"
318+
cat <<-EOSH >> "${XDG_CONFIG_HOME:-~/.config}/fish/config.fish"
319+
320+
function add_tea_environment --on-variable PWD; tea -Eds | source; end #tea
321+
EOSH
319322
fi
320323
else
321324
gum format -- <<-EOMD

0 commit comments

Comments
 (0)