]> git.rmz.io Git - dotfiles.git/blobdiff - zshenv
zsh: use pinentry-curses when connected over ssh
[dotfiles.git] / zshenv
diff --git a/zshenv b/zshenv
index fdb7e2f2fbb8185da0b5df2d82db5aa3cce1d74c..e939573326c76c7ac3bd0c61c1aff7038e1684a0 100644 (file)
--- 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 \
@@ -39,3 +39,6 @@ export MPLAYER_HOME="$XDG_CONFIG_HOME/mplayer"
 
 # gpg
 export GNUPGHOME="$XDG_CONFIG_HOME/gnupg"
+
+# pass
+export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"