]> git.rmz.io Git - dotfiles.git/commitdiff
zsh: export PASSWORD_STORE_DIR/PATH to systemd for bugwarrior service
authorSamir Benmendil <me@rmz.io>
Sun, 7 Dec 2025 20:54:47 +0000 (20:54 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 7 Dec 2025 21:26:54 +0000 (21:26 +0000)
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.

zshenv

diff --git a/zshenv b/zshenv
index 2a4f38de7b01f6c3630cdb9b2311e83e8d1704cc..287cea1ddfc247afc9cec53d1116be98d4706180 100644 (file)
--- 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"