diff --git a/bin/v-choco-refreshenv.cmd b/bin/v-choco-refreshenv.cmd new file mode 100644 index 0000000..17cf02e --- /dev/null +++ b/bin/v-choco-refreshenv.cmd @@ -0,0 +1,3 @@ +@echo off +call RefreshEnv +call %~dp0\..\env.cmd \ No newline at end of file diff --git a/bin/v-gem.cmd b/bin/v-gem.cmd index 9dcca39..77dcbb5 100644 --- a/bin/v-gem.cmd +++ b/bin/v-gem.cmd @@ -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 %* \ No newline at end of file diff --git a/bin/v-ghc.cmd b/bin/v-ghc.cmd index d97503f..4a27699 100644 --- a/bin/v-ghc.cmd +++ b/bin/v-ghc.cmd @@ -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 %* \ No newline at end of file diff --git a/bin/v-ghci.cmd b/bin/v-ghci.cmd index 4d074bc..bfb3332 100644 --- a/bin/v-ghci.cmd +++ b/bin/v-ghci.cmd @@ -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 %* \ No newline at end of file diff --git a/bin/v-irb.cmd b/bin/v-irb.cmd index 6cec506..19156f1 100644 --- a/bin/v-irb.cmd +++ b/bin/v-irb.cmd @@ -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 %* \ No newline at end of file diff --git a/bin/v-node.cmd b/bin/v-node.cmd index a711a8a..ba89b3f 100644 --- a/bin/v-node.cmd +++ b/bin/v-node.cmd @@ -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 %* \ No newline at end of file diff --git a/bin/v-npm.cmd b/bin/v-npm.cmd index 149a44e..ff72c58 100644 --- a/bin/v-npm.cmd +++ b/bin/v-npm.cmd @@ -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 %* \ No newline at end of file diff --git a/bin/v-ruby.cmd b/bin/v-ruby.cmd index bee2bfe..a430c14 100644 --- a/bin/v-ruby.cmd +++ b/bin/v-ruby.cmd @@ -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 %* \ No newline at end of file diff --git a/bin/v-rubyw.cmd b/bin/v-rubyw.cmd index eadd68d..ba42330 100644 --- a/bin/v-rubyw.cmd +++ b/bin/v-rubyw.cmd @@ -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 %* \ No newline at end of file diff --git a/bin/v-runghc.cmd b/bin/v-runghc.cmd index 2656122..78cc9ae 100644 --- a/bin/v-runghc.cmd +++ b/bin/v-runghc.cmd @@ -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 %* \ No newline at end of file diff --git a/env.cmd b/env.cmd new file mode 100644 index 0000000..c61fca6 --- /dev/null +++ b/env.cmd @@ -0,0 +1,3 @@ +@echo off +set VID_HOME=%~dp0 +set PATH=%~dp0\bin;%PATH% diff --git a/start.cmd b/start.cmd index bb64490..dcf33bd 100644 --- a/start.cmd +++ b/start.cmd @@ -1,4 +1,3 @@ @echo off -set VID_HOME=%~dp0 -set PATH=%~dp0\bin;%PATH% +call %~dp0\env.cmd cmd /k \ No newline at end of file