-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.bat
More file actions
24 lines (21 loc) · 869 Bytes
/
install.bat
File metadata and controls
24 lines (21 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
:: check for admin rights and try to elevate
whoami /groups | findstr /b BUILTIN\Administrators | findstr /c:"Enabled group" > NUL && goto :run
echo Running command as Administrator...
sudo "makelinks.bat" && goto :end
echo Failed to elevate. Try running this script as Administrator.
pause
goto :end
:run
@echo on
mklink %USERPROFILE%\.bash_profile %USERPROFILE%\.dotfiles\bash_profile
mklink %USERPROFILE%\.bashrc %USERPROFILE%\.dotfiles\bashrc
copy /-Y %USERPROFILE%\.dotfiles\gitconfig_base %USERPROFILE%\.gitconfig
mklink %USERPROFILE%\.vimrc %USERPROFILE%\.dotfiles\vimrc
mkdir %USERPROFILE%\Documents\Powershell
mklink %USERPROFILE%\Documents\Powershell\Microsoft.PowerShell_profile.ps1 %USERPROFILE%\.dotfiles\Microsoft.PowerShell_profile.ps1
winget install JanDeDobbeleer.OhMyPosh -s winget
oh-my-posh font install CommitMono
@echo off
pause
:end