X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/b3b372c042301763e31dc6959007c078603396ea..refs/heads/smartlab-imac2:/zshenv diff --git a/zshenv b/zshenv index 710e9f6..fdb7e2f 100644 --- a/zshenv +++ b/zshenv @@ -5,13 +5,15 @@ export XDG_DATA_HOME="$HOME/.local/share" export XDG_CACHE_HOME="$HOME/.cache" export HOST=$(hostname) -systemctl --user import-environment \ - XDG_CACHE_HOME \ - XDG_CONFIG_HOME \ - XDG_DATA_HOME +if [[ $+commands[systemctl] ]]; then + systemctl --user import-environment \ + XDG_CACHE_HOME \ + XDG_CONFIG_HOME \ + XDG_DATA_HOME +fi # vim stuff -[[ -d "$XDG_CACHE_HOME/vim" ]] || mkdir -p "$XDG_CACHE_HOME/vim" +[[ -d "$XDG_CACHE_HOME/vim/backup" ]] || mkdir -p "$XDG_CACHE_HOME"/vim/{backup,undo,view} export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC' export EDITOR=vim export VISUAL=vim