mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
Force default gem path
This commit is contained in:
parent
b1fe9096ec
commit
ff19278e4a
1 changed files with 10 additions and 4 deletions
14
shell/ruby
14
shell/ruby
|
|
@ -1,10 +1,16 @@
|
|||
# vim: ft=sh
|
||||
# shellcheck shell=bash
|
||||
|
||||
#ruby_version='2.7.0'
|
||||
#GEM_HOME="$HOME/.gem/ruby/${ruby_version}"
|
||||
#export GEM_HOME
|
||||
#PATH=$PATH:"$GEM_HOME/bin"
|
||||
_gem_home() {
|
||||
GEM_HOME="${HOME}/.gem/ruby/system"
|
||||
export GEM_HOME
|
||||
PATH="${GEM_HOME}/bin:${PATH}"
|
||||
export PATH
|
||||
}
|
||||
|
||||
if ! _has-chruby; then
|
||||
_gem_home
|
||||
fi
|
||||
|
||||
_auto-rubygems_gemdeps() {
|
||||
local check_dir=$PWD
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue