We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10fcf46 commit 9bbe101Copy full SHA for 9bbe101
1 file changed
crates/vite_global_cli/src/commands/env/setup.rs
@@ -515,9 +515,12 @@ function vp
515
end
516
517
# Shell completion for fish
518
-set -l __vp_completion "__VP_COMPLETION_FISH__"
519
-if test -f "$__vp_completion"
520
- source "$__vp_completion"
+if not set -q __vp_completion_sourced
+ set -l __vp_completion "__VP_COMPLETION_FISH__"
+ if test -f "$__vp_completion"
521
+ source "$__vp_completion"
522
+ set -g __vp_completion_sourced 1
523
+ end
524
525
"#
526
.replace("__VP_BIN__", &bin_path_ref)
0 commit comments