Skip to content

Commit 0834b7b

Browse files
authored
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 194225e commit 0834b7b

File tree

1 file changed

+2
-2
lines changed
  • crates/vite_global_cli/src/commands/env

1 file changed

+2
-2
lines changed

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)