Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tpope/rbenv-aliases
Create aliases for rbenv Ruby versions
https://github.com/tpope/rbenv-aliases
Last synced: 10 days ago
JSON representation
Create aliases for rbenv Ruby versions
- Host: GitHub
- URL: https://github.com/tpope/rbenv-aliases
- Owner: tpope
- License: mit
- Created: 2013-02-24T20:19:52.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2023-02-10T21:20:06.000Z (almost 2 years ago)
- Last Synced: 2024-12-14T04:12:54.339Z (23 days ago)
- Language: Shell
- Homepage:
- Size: 29.3 KB
- Stars: 127
- Watchers: 5
- Forks: 18
- Open Issues: 2
-
Metadata Files:
- Readme: README.markdown
- Contributing: CONTRIBUTING.markdown
- License: MIT-LICENSE
Awesome Lists containing this project
- awesome-env - rbenv-aliases
README
# Aliases for rbenv Ruby versions
Invoke `rbenv alias ` to make a symbolic link from `` to
`` in the [rbenv][] versions directory, effectively creating an
alias. The cool part is that if you pass in a point release as the name, you
can give `--auto` to link to the latest installed patch level. For example,
`rbenv alias 1.8.7 --auto` will automatically create an alias from `1.8.7` to
`1.8.7-p371` (or whatever the most recent version you have installed is).Plus, if you're using [ruby-build][], `rbenv install A.B.C-pXXX` automatically
invokes `rbenv alias A.B.C --auto`, so you'll always have up to date aliases
for point releases.Whether it's a good idea to use these aliases in a `.ruby-version` file, I
cannot say. I created this plugin to find out. If your only concern is
having to reinstall gems every time you install a new patch release, check out
[rbenv-communal-gems][].## Installation
mkdir -p "$(rbenv root)/plugins"
git clone https://github.com/tpope/rbenv-aliases.git \
"$(rbenv root)/plugins/rbenv-aliases" &&\
rbenv alias --auto[rbenv]: https://github.com/sstephenson/rbenv
[ruby-build]: https://github.com/sstephenson/ruby-build
[rbenv-communal-gems]: https://github.com/tpope/rbenv-communal-gems