commit a1079f6035ba67ff46ebb77433c457667ee45854
parent 6d4c70bc4859bce82fe4e8878f1fb78adcaf2413
Author: Alex Balgavy <alex@balgavy.eu>
Date: Tue, 2 Mar 2021 23:21:28 +0100
shell: set perl module location
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/shell/env b/shell/env
@@ -215,3 +215,4 @@ export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch/config"
export GNUPGHOME="$XDG_CONFIG_HOME/gnupg"
export R_PROFILE_USER="$XDG_CONFIG_HOME/R/Rprofile"
export MAILCAPS="$XDG_CONFIG_HOME/mailcap"
+eval "$(perl -I$XDG_DATA_HOME/perl5/lib/perl5 -Mlocal::lib=$XDG_DATA_HOME/perl5)"
diff --git a/shell/paths b/shell/paths
@@ -17,7 +17,7 @@
[ -d "$DOTFILES/tools/shfm" ] && [ -n "${PATH##*"$DOTFILES/tools/shfm"*}" ] && PATH="$DOTFILES/tools/shfm:$PATH"
[ -d "$DOTFILES/tools/pfetch" ] && [ -n "${PATH##*"$DOTFILES/tools/pfetch"*}" ] && PATH="$DOTFILES/tools/pfetch:$PATH"
[ -d "$DOTFILES/tools/tuxi" ] && [ -n "${PATH##*"$DOTFILES/tools/tuxi"*}" ] && PATH="$DOTFILES/tools/tuxi:$PATH"
-[ -d "/usr/local/Cellar/perl/5.32.1/bin" ] && [ -n "${PATH##*"/usr/local/Cellar/perl/5.32.1/bin"*}" ] && PATH="/usr/local/Cellar/perl/5.32.1/bin:$PATH"
+[ -d "$XDG_DATA_HOME/perl5/bin" ] && [ -n "${PATH##*"$XDG_DATA_HOME/perl5/bin"*}" ] && PATH="$XDG_DATA_HOME/perl5/bin:$PATH"
command -v rbenv 1>/dev/null 2>&1 && eval "$(rbenv init -)"
export PATH