dotfiles/windows/bootstrap_windows.bat

18 lines
697 B
Batchfile
Raw Normal View History

2021-01-07 08:09:41 +00:00
REM First move over old files to backup
mkdir %UserProfile%\vimbak
mkdir %UserProfile%\gitbak
move %UserProfile%\_vimrc %UserProfile%\vimbak
move %UserProfile%\vimfiles %UserProfile%\vimbak
move %UserProfile%\.gitconfig %UserProfile%\vimbak
move %UserProfile%\.gitignore %UserProfile%\vimbak
type NUL > %UserProfile%\.gitconfig.local
REM Then link new files in
mklink %UserProfile%\_vimrc %~dp0..\symlinks\vimrc
mklink /D %UserProfile%\vimfiles %~dp0..\symlinks\vim
mklink %UserProfile%\.gitconfig %~dp0..\symlinks\gitconfig
mklink %UserProfile%\.gitignore %~dp0..\symlinks\gitignore
REM Then set up vim plug
Powershell.exe -executionpolicy remotesigned -File %~dp0install_vim_plug_windows.ps1