add gitme and git

This commit is contained in:
rabix 2022-03-05 14:25:10 +08:00
parent 564ae4af0f
commit 0ed6ba34b3
3 changed files with 14 additions and 2 deletions

View File

@ -1,5 +1,7 @@
@echo off
where choco.exe >nul 2>nul
if errorlevel 1 powershell -c "Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1').Replace('if (Test-ChocolateyInstalled)', 'if ($false)'))"
call v-choco-refreshenv
if errorlevel 1 (
powershell -c "Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1').Replace('if (Test-ChocolateyInstalled)', 'if ($false)'))"
call v-choco-refreshenv
)
choco.exe %*

4
bin/git.cmd Normal file
View File

@ -0,0 +1,4 @@
@echo off
where git.exe 2>nul >nul
if errorlevel 1 call choco install git & call %~dp0\v-choco-refreshenv
git.exe %*

6
bin/gitme.cmd Normal file
View File

@ -0,0 +1,6 @@
@echo off
if "%1"=="" (
echo gitme username/reponame
exit /b
)
git clone https://gitme.fun/%1 . && if exist vid-init-module.cmd call vid-init-module.cmd