1
0
Files
dotfiles/dots.bat
James Bulman a184195a29 Made config vaguely work on Windows
Added dots.bat script for installing and pulling
Added clink config for cmd
Removed auto-split on start in nvim
Added guifont in nvim
Added workaround for shellpipe in nvim
2025-09-27 21:52:48 +01:00

37 lines
887 B
Batchfile

@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
IF "%1" == "install" (
CALL :Install
) ELSE (
IF "%1" == "pull" (
CALL :Pull
) ELSE (
echo usage: %0 ^<install^|pull^|diff^>
)
)
GOTO :EOF
:Install
echo [Info] :: Installing dotfiles
xcopy /E /I /Y /Q "config\nvim" "%LOCALAPPDATA%\nvim" > NUL
copy /Y "config\starship.toml" "%APPDATA%\" > NUL
copy /Y "config\clink\inputrc" "%LOCALAPPDATA%\.inputrc" > NUL
WHERE /q "starship"
IF %ERRORLEVEL% equ 0 (
IF NOT EXIST "%LOCALAPPDATA%\clink" ( MKDIR "%LOCALAPPDATA%\clink" )
copy "config\clink\starship.lua" "%LOCALAPPDATA%\clink\" > NUL
)
GOTO :EOF
:Pull
echo [Info] :: Pulling dotfile changes
xcopy /E /I /Y "%LOCALAPPDATA%\nvim" "config\nvim"
copy /Y "%APPDATA%\starship.toml" "config\"
copy /Y "%LOCALAPPDATA%\.inputrc" "config\clink\inputrc"
GOTO :EOF