From: sev Date: Mon, 16 Sep 2024 13:44:15 +0000 (-0500) Subject: zshenv: fix perl dir if xdg data unset X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/b778cd412e7fb63099c506e3948f011e4d169dff?hp=1a578fd007c8ba4196e424f993ce55837649d78b zshenv: fix perl dir if xdg data unset --- diff --git a/etc/zsh/.zshenv b/etc/zsh/.zshenv index 6a513e2..8bf4cbe 100644 --- a/etc/zsh/.zshenv +++ b/etc/zsh/.zshenv @@ -288,9 +288,9 @@ if [[ ! -v GNUPGHOME ]] { ## perl local lib [[ ! -v PERL_LOCAL_LIB_ROOT && -v commands[perl] && - -d $XDG_DATA_HOME/perl5/lib/perl5 ]] && - eval $(perl -I$XDG_DATA_HOME/perl5/lib/perl5 \ - -Mlocal::lib=$XDG_DATA_HOME/perl5 2>/dev/null) + -d ${XDG_DATA_HOME:-~/.local/share}/perl5/lib/perl5 ]] && + eval $(perl -I${XDG_DATA_HOME:-~/.local/share}/perl5/lib/perl5 \ + -Mlocal::lib=${XDG_DATA_HOME:-~/.local/share}/perl5 2>/dev/null) ## go if [[ -v commands[go] ]] {