diff options
-rw-r--r-- | .zshrc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |