-
Notifications
You must be signed in to change notification settings - Fork 0
/
get-buvis.bat
45 lines (36 loc) · 1.54 KB
/
get-buvis.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
@echo off
Rem Remove any previous installations
cd %HOME%
set REPO=%HOME%\.buvis
rmdir /Q /s %REPO%
Rem Clone as bare repository
git clone --bare https://github.com/tbouska/buvis.git %REPO%
Rem Don't list untracked files in git status
git --git-dir=%REPO% --work-tree=%HOME% config status.showUntrackedFiles no
Rem Avoid conflicts on checkout
echo Remove submodules listed in .gitmodules
pause > nul
echo Backup and remove conflicting files/folders (see repository at https://github.com/tbouska/buvis for the list of files)
pause > nul
Rem Checkout
git --git-dir=%REPO% --work-tree=%HOME% checkout
Rem Retrieve submodules' content
git --git-dir=%REPO% --work-tree=%HOME% submodule update --init
git --git-dir=%REPO% --work-tree=%HOME% submodule update --remote --merge
Rem Track master for pull/push
git --git-dir=%REPO% --work-tree=%HOME% push -u origin master
Rem Keep README.md and get-buvis.sh in remote only (it is meant for public, and I don't need it on my machines)
del %HOME%\README.md
del %HOME%\get-buvis.sh
del %HOME%\get-buvis.bat
git --git-dir=%REPO% --work-tree=%HOME% update-index --skip-worktree README.md get-buvis.sh get-buvis.bat
Rem Install requirements for python scripts
pip install -r bin\requirements.txt
Rem Print instructions to link alacritty config
echo Start cmd as Administrator and run:
echo.
echo 1. cd %APPDATA%
echo 2. mkdir alacritty
echo 3. mklink %APPDATA%\alacritty\alacritty.yml %HOME%\.config\alacritty\alacritty-windows.yml
echo 4. mklink %APPDATA%\alacritty\alacritty.info %HOME%\.config\alacritty\alacritty.info
pause > nul