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
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 %*

View File

@ -1,4 +1,4 @@
@echo off
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 %*

View File

@ -1,4 +1,4 @@
@echo off
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 %*

View File

@ -1,4 +1,4 @@
@echo off
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 %*

View File

@ -1,4 +1,4 @@
@echo off
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 %*

View File

@ -1,4 +1,4 @@
@echo off
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 %*

View File

@ -1,4 +1,4 @@
@echo off
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 %*

View File

@ -1,4 +1,4 @@
@echo off
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 %*

View File

@ -1,4 +1,4 @@
@echo off
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 %*

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
set VID_HOME=%~dp0
set PATH=%~dp0\bin;%PATH%
call %~dp0\env.cmd
cmd /k