Skip to content

nak1114/rbenv-win

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rbenv for Windows

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.

Usage

Show all implement commands.

 > rbenv commands

How to use the detailed command, please refer to the original rbenv.

Installation

Installer is here.
Install rbenv for windows to your USERPROFILE directory.

  1. Clone git repositry

    > git clone https://github.com/nak1114/rbenv-win.git %USERPROFILE%\.rbenv-win
    
  2. Config path
    Add the bin & shims directory to your PATH 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%"
    
  3. Restart your shell

    > exit
    
  4. Run the following command after rbenv installation , to enable the ruby.

    > rbenv install 2.2.4
    > rbenv global 2.2.4
    > rbenv rehash
    

License

The scripts is available as open source under the terms of the MIT License.

Development

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.

Contributing

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.