gem: set GEM_HOME
This commit is contained in:
6
bashrc.d/gem.bash
Normal file
6
bashrc.d/gem.bash
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
GEM=$(which gem)
|
||||||
|
if [ -n "$GEM" ] ; then
|
||||||
|
RUBY_VERSION=$(ruby --version | awk '{print $2}')
|
||||||
|
export GEM_HOME="$HOME/.cache/gem/$RUBY_VERSION/"
|
||||||
|
addpath "$GEM_HOME/bin"
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user