Skip to content

Commit

Permalink
bugfix: fish hook script
Browse files Browse the repository at this point in the history
  • Loading branch information
aooohan committed Jan 16, 2024
1 parent 40b6d9e commit 523f027
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/shell/fish.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const fishHook = `
if test "$vfox_fish_mode" = "eval_after_arrow";
set -g __vfox_export_again 0;
else;
"{{.SelfPath}}" export fish | source;
"{{.SelfPath}}" env -s fish | source;
end;
end;
end;
Expand All @@ -48,14 +48,15 @@ const fishHook = `
function __vfox_export_eval_2 --on-event fish_preexec;
if set -q __vfox_export_again;
set -e __vfox_export_again;
"{{.SelfPath}}" export fish | source;
"{{.SelfPath}}" env -s fish | source;
echo;
end;
functions --erase __vfox_cd_hook;
end;
function cleanup_on_exit --on-process-exit %self
vfox env --cleanup
"{{.SelfPath}}" env --cleanup
end;
`

Expand Down

0 comments on commit 523f027

Please sign in to comment.