summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2021-05-23 18:18:26 +0200
committerFlorian Pritz <bluewind@xinu.at>2021-05-23 18:18:26 +0200
commit0b717e67342afe7f7f67a4954e90ee2b6a3634e1 (patch)
tree944121cdb9d6703a6fb49649e93d5d87b71f6d2e
parentdb2c35ff5a6578ece0b1785e2c0791aaae7654b5 (diff)
downloaddotfiles-master.tar.gz
dotfiles-master.tar.xz
zshrc: Version perl local-lib directoryHEADmaster
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--.zshrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/.zshrc b/.zshrc
index f199c66..f66df7b 100644
--- a/.zshrc
+++ b/.zshrc
@@ -880,8 +880,9 @@ fi
#export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh
export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/keyring/ssh"
-if [[ -e ~/perl5 ]]; then
- eval "$(api_ver=$(perl -MConfig -e'print $Config{api_version}') && perl -I$HOME/.local/perl5.${api_ver}/lib/perl5/ -Mlocal::lib=--deactivate-all,$HOME/.local/perl5.${api_ver})"
+if [[ -e ~/.local/perl/ ]]; then
+ perl_api_ver=$(perl -MConfig -e'print $Config{api_version}')
+ eval "$(perl -I$HOME/.local/perl/5.${perl_api_ver}/lib/perl5/ -Mlocal::lib=--deactivate-all,$HOME/.local/perl/5.${perl_api_ver})"
fi
#if type keychain >/dev/null; then