X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/6d56bc694df9ddc227cddead5607d0c775d97eab..c1a5f411ec24faa666d9f51a5e06da4b5bdb6da2:/zshenv diff --git a/zshenv b/zshenv index fc7ffc8..e939573 100644 --- a/zshenv +++ b/zshenv @@ -5,7 +5,7 @@ export XDG_DATA_HOME="$HOME/.local/share" export XDG_CACHE_HOME="$HOME/.cache" export HOST=$(hostname) -if [[ $+commands[systemctl] ]]; then +if hash systemctl 2>/dev/null; then systemctl --user import-environment \ XDG_CACHE_HOME \ XDG_CONFIG_HOME \