refreshenv

This commit is contained in:
rabix 2022-03-03 01:12:56 +08:00
parent 85b7d1e1b5
commit e12812410d
12 changed files with 16 additions and 11 deletions

View File

@ -0,0 +1,3 @@
@echo off
call RefreshEnv
call %~dp0\..\env.cmd

View File

@ -1,4 +1,4 @@
@echo off @echo off
where gem >nul 2>nul where gem >nul 2>nul
if errorlevel 1 call v-choco install ruby -y & call refreshenv if errorlevel 1 call v-choco install ruby -y & call %~dp0\v-choco-refreshenv
call gem %* call gem %*

View File

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

View File

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

View File

@ -1,4 +1,4 @@
@echo off @echo off
where irb >nul 2>nul where irb >nul 2>nul
if errorlevel 1 call v-choco install ruby -y & call refreshenv if errorlevel 1 call v-choco install ruby -y & call %~dp0\v-choco-refreshenv
irb %* irb %*

View File

@ -1,4 +1,4 @@
@echo off @echo off
where npm >nul 2>nul where npm >nul 2>nul
if errorlevel 1 call v-choco install nodejs -y & call refreshenv if errorlevel 1 call v-choco install nodejs -y & call %~dp0\v-choco-refreshenv
call node %* call node %*

View File

@ -1,4 +1,4 @@
@echo off @echo off
where npm >nul 2>nul where npm >nul 2>nul
if errorlevel 1 call v-choco install nodejs -y & call refreshenv if errorlevel 1 call v-choco install nodejs -y & call %~dp0\v-choco-refreshenv
call npm %* call npm %*

View File

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

View File

@ -1,4 +1,4 @@
@echo off @echo off
where rubyw >nul 2>nul where rubyw >nul 2>nul
if errorlevel 1 call v-choco install ruby -y & call refreshenv if errorlevel 1 call v-choco install ruby -y & call %~dp0\v-choco-refreshenv
rubyw %* rubyw %*

View File

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

3
env.cmd Normal file
View File

@ -0,0 +1,3 @@
@echo off
set VID_HOME=%~dp0
set PATH=%~dp0\bin;%PATH%

View File

@ -1,4 +1,3 @@
@echo off @echo off
set VID_HOME=%~dp0 call %~dp0\env.cmd
set PATH=%~dp0\bin;%PATH%
cmd /k cmd /k