The rbenv is a great tool. I ported it to Windows. Some commands doesn't implemented, but wouldn't be a problem in basic use.
Show all implement commands.
> rbenv commands
How to use the detailed command, please refer to the original rbenv.
Installer is here.
Install rbenv for windows
to your USERPROFILE
directory.
-
Clone git repositry
> git clone https://github.com/nak1114/rbenv-win.git %USERPROFILE%\.rbenv-win
-
Config path
Add thebin
&shims
directory to yourPATH
environment variable for access to the rbenv command> for /f "skip=2 delims=" %a in ('reg query HKCU\Environment /v Path') do set orgpath=%a > setx Path "%USERPROFILE%\.rbenv-win\bin;%USERPROFILE%\.rbenv-win\shims;%orgpath:~22%"
-
Restart your shell
> exit
-
Run the following command after
rbenv
installation , to enable theruby
.> rbenv install 2.2.4 > rbenv global 2.2.4 > rbenv rehash
The scripts is available as open source under the terms of the MIT License.
Release test is performed in the following procedure.
````
> git clone https://github.com/nak1114/rbenv-win.git <your test dir>
> cd <your test dir>/test
> test.bat
````
This test requires the FireFox.
Bug reports and pull requests are welcome on GitHub at https://github.com/nak1114/rbenv-win. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.