Skip to content

Commit 91fed80

Browse files
nekomoyifengmk2
authored andcommitted
fix(env): fix fish shell wrapper for vp env use (#1141)
1. Pass `FISH_VERSION` to the `vp` command so shell detection works correctly 2. Use `string join ';'` to properly format multi-line output for `eval` Fixes #1069
1 parent e882d4c commit 91fed80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • crates/vite_global_cli/src/commands/env

crates/vite_global_cli/src/commands/env/setup.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,8 @@ function vp
507507
command vp $argv; return
508508
end
509509
set -lx VITE_PLUS_ENV_USE_EVAL_ENABLE 1
510-
set -l __vp_out (command vp $argv); or return $status
511-
eval $__vp_out
510+
set -l __vp_out (env FISH_VERSION=$FISH_VERSION command vp $argv); or return $status
511+
eval (string join ';' $__vp_out)
512512
else
513513
command vp $argv
514514
end

0 commit comments

Comments
 (0)