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
This commit is contained in:
36
dots.bat
Normal file
36
dots.bat
Normal file
@@ -0,0 +1,36 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user