@echo off if "%1"=="--clean" ( if exist "%USERPROFILE%\.config\wezterm" ( fsutil reparsepoint query "%USERPROFILE%\.config\wezterm" >nul 2>&1 if errorlevel 1 ( echo Deleting existing nvim directory... rmdir /s /q "%USERPROFILE%\.config\wezterm" ) else ( echo Symlink already exists, skipping clean. ) ) ) if not exist "%USERPROFILE%\.config\" ( mkdir "%USERPROFILE%\.config\" ) mklink /J %USERPROFILE%\.config\wezterm .\wezterm pause