summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-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