From: Samir Benmendil Date: Sun, 7 Dec 2025 20:54:47 +0000 (+0000) Subject: zsh: export PASSWORD_STORE_DIR/PATH to systemd for bugwarrior service X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/78aa5f08ca311dc82cdeac77b0385d21dea5333b zsh: export PASSWORD_STORE_DIR/PATH to systemd for bugwarrior service Since the bugwarrior service requests the password from the store, it needs access. And bugwarrior also calls `task`, however I used a custom version in `~/.local/bin/` which needs to be in PATH. --- diff --git a/zshenv b/zshenv index 2a4f38d..287cea1 100644 --- a/zshenv +++ b/zshenv @@ -21,6 +21,9 @@ export SSH_AUTH_SOCK=${SSH_AUTH_SOCK:-"$XDG_RUNTIME_DIR/ssh-agent.socket"} export MAILDIR="$HOME/mail" +# pass +export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass" + if hash systemctl 2>/dev/null; then systemctl --user import-environment \ XDG_CACHE_HOME \ @@ -28,6 +31,8 @@ if hash systemctl 2>/dev/null; then XDG_DATA_HOME \ GNUPGHOME \ MAILDIR \ + PATH \ + PASSWORD_STORE_DIR \ SSH_AUTH_SOCK fi @@ -53,9 +58,6 @@ export RXVT_SOCKET="$XDG_RUNTIME_DIR/urxvtd-$HOST" export MPV_HOME="$XDG_CONFIG_HOME/mpv" export MPLAYER_HOME="$XDG_CONFIG_HOME/mplayer" -# pass -export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass" - # weechat export WEECHAT_HOME="$XDG_CONFIG_HOME/weechat"