gem: set GEM_HOME

This commit is contained in:
Paul Walker
2025-04-08 09:47:32 +01:00
parent 1e3f730ce9
commit 3f4696cfb7

6
bashrc.d/gem.bash Normal file
View 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