X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/41a01ab5953ca44e2bca83e991b8b4bad53bd786..f5f39bf6d1b33a2ec77cd6f79c1d38ae116ff076:/zshenv diff --git a/zshenv b/zshenv index 0ce4be9..b161335 100644 --- a/zshenv +++ b/zshenv @@ -5,10 +5,19 @@ 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 +# gpg +export GNUPGHOME="$XDG_CONFIG_HOME/gnupg" +# ssh +export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" + +if hash systemctl 2>/dev/null; then + systemctl --user import-environment \ + XDG_CACHE_HOME \ + XDG_CONFIG_HOME \ + XDG_DATA_HOME \ + GNUPGHOME \ + SSH_AUTH_SOCK +fi # vim stuff [[ -d "$XDG_CACHE_HOME/vim/backup" ]] || mkdir -p "$XDG_CACHE_HOME"/vim/{backup,undo,view} @@ -17,7 +26,7 @@ export EDITOR=vim export VISUAL=vim # default browser -export BROWSER=dwb +export BROWSER=qutebrowser # mail export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch" @@ -35,5 +44,11 @@ export TASKRC="$XDG_CONFIG_HOME/taskrc" export MPV_HOME="$XDG_CONFIG_HOME/mpv" export MPLAYER_HOME="$XDG_CONFIG_HOME/mplayer" -# gpg -export GNUPGHOME="$XDG_CONFIG_HOME/gnupg" +# pass +export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass" + +# SSH Agent +export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" + +# weechat +export WEECHAT_HOME="$XDG_CONFIG_HOME/weechat"