forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.bat
53 lines (43 loc) · 1020 Bytes
/
bootstrap.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
@echo off
pushd %~dp0
echo Gitting latest
call git pull origin master
echo Copying Files
xcopy .vim "%USERPROFILE%\.vim" /F /E /I /H /R /Y /EXCLUDE:.xcopyignore
xcopy .* "%USERPROFILE%" /F /E /I /H /R /Y /EXCLUDE:.xcopyignore
:: Install Vim plugins
set vimroot="%ProgramFiles%"\vim
if not exist %vimroot% (
set vimroot="%ProgramFiles(x86)%"\vim
)
if not exist %vimroot% (
echo "Vim is not installed"
goto novim
)
set vimpath=%vimroot%\vim74
if not exist %vimpath% (
set vimpath=%vimroot%\vim73
)
if not exist %vimpath% (
echo "Vim is not installed"
goto novim
)
set vimexe=%vimpath%\vim.exe
if not exist %vimexe% (
echo "Vim is not installed"
goto novim
)
call %vimexe% -c "PlugInstall" +qall
:novim
:: AutoHotkey
call win\ahkBootstrap.bat
:: FreeCommander
if not exist "%appdata%\FreeCommander\FreeCommander.ini" (
echo F | xcopy win\freecommander\* "%appdata%\FreeCommander\" /F /E /I /H /R /Y
)
:: Run extra custom script
set extra=%USERPROFILE%\extra.bat
if exist "%extra%" (
call %extra%
)
popd