Skip to content

mimityu/aaa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 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](https://github.com/rbenv/rbenv).


## Installation

Installer is [here](https://gist.github.com/7ea63204203883c5884d.git).  
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](http://opensource.org/licenses/MIT).

## 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](http://contributor-covenant.org) code of conduct.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •