@@ -432,9 +432,9 @@ vp() {
432432
433433# Dynamic shell completion for bash/zsh
434434if [ -n "$BASH_VERSION" ] && type complete >/dev/null 2>&1; then
435- eval "$(COMPLETE =bash command vp)"
435+ eval "$(VP_COMPLETE =bash command vp)"
436436elif [ -n "$ZSH_VERSION" ] && type compdef >/dev/null 2>&1; then
437- eval "$(COMPLETE =zsh command vp)"
437+ eval "$(VP_COMPLETE =zsh command vp)"
438438fi
439439"#
440440 . replace ( "__VP_BIN__" , & bin_path_ref) ;
@@ -463,7 +463,7 @@ function vp
463463end
464464
465465# Dynamic shell completion for fish
466- COMPLETE =fish command vp | source
466+ VP_COMPLETE =fish command vp | source
467467"#
468468 . replace ( "__VP_BIN__" , & bin_path_ref) ;
469469 let env_fish_file = vite_plus_home. join ( "env.fish" ) ;
@@ -854,11 +854,11 @@ mod tests {
854854
855855 // Verify completion env is set
856856 assert ! (
857- env_content. contains( "COMPLETE =bash" ) && env_content. contains( "COMPLETE =zsh" ) ,
857+ env_content. contains( "VP_COMPLETE =bash" ) && env_content. contains( "VP_COMPLETE =zsh" ) ,
858858 "env file should contain completion for bash and zsh"
859859 ) ;
860860 assert ! (
861- fish_content. contains( "COMPLETE =fish" ) ,
861+ fish_content. contains( "VP_COMPLETE =fish" ) ,
862862 "env.fish file should contain completion for fish"
863863 ) ;
864864 assert ! (
0 commit comments