From 5f709d5a8afa467a98a6eea713d1a9e4050ea13d Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Sun, 25 Apr 2021 14:38:15 -0400 Subject: [PATCH] ADD xdg path for rubygems --- dot_config/X11/xinitrc | 4 ++++ dot_pam_environment | 2 ++ 2 files changed, 6 insertions(+) diff --git a/dot_config/X11/xinitrc b/dot_config/X11/xinitrc index ce92b22..ac55aaf 100644 --- a/dot_config/X11/xinitrc +++ b/dot_config/X11/xinitrc @@ -5,6 +5,10 @@ userresources="$XDG_CONFIG_HOME/X11/xresources" systemctl --user import-environment PATH systemctl --user import-environment DISPLAY +# add gempath to PATH +gempaths="$(/usr/bin/gem env gempath):" +export PATH="${gempaths//:/\/bin:}/bin:$PATH" + if [ -f "$userresources" ]; then xrdb -merge "$userresources" fi diff --git a/dot_pam_environment b/dot_pam_environment index af252df..5187459 100644 --- a/dot_pam_environment +++ b/dot_pam_environment @@ -17,6 +17,8 @@ CCNET_CONF_DIR DEFAULT=${XDG_CONFIG_HOME}/ccnet # user_subvol_rm_allowed mount option on the host filesystem DOCKER_HOST DEFAULT=unix://${XDG_RUNTIME_DIR}/docker.sock +GEM_HOME DEFAULT=${XDG_DATA_HOME}/gem +GEM_SPEC_CACHE DEFAULT=${XDG_CACHE_HOME}/gem GRIPHOME DEFAULT=${XDG_CONFIG_HOME}/grip GTK2_RC_FILES DEFAULT=${XDG_CONFIG_HOME}/gtk-2.0/gtkrc STACK_ROOT DEFAULT=${XDG_DATA_HOME}/stack