Skip to content

Commit

Permalink
Merge pull request #212 from brianvanburken/master
Browse files Browse the repository at this point in the history
Support non-default .default-gems locations.
  • Loading branch information
Stratus3D authored May 4, 2021
2 parents 7788ed4 + a3d0cdf commit f134c2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ pry
gem-ctags
```

You can specify a non-default location of this file by setting a `ASDF_GEM_DEFAULT_PACKAGES_FILE` variable.

## Migrating from another Ruby version manager

### `.ruby-version` file
Expand Down
2 changes: 1 addition & 1 deletion bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ get_absolute_path() {

install_default_gems() {
local args=()
local default_gems="${HOME}/.default-gems"
local default_gems="${ASDF_GEM_DEFAULT_PACKAGES_FILE:=$HOME/.default-gems}"
local gem="${ASDF_INSTALL_PATH}/bin/gem"

if [ ! -f "$default_gems" ]; then
Expand Down

0 comments on commit f134c2d

Please sign in to comment.