From 5ed1650b02e58bc0c0837d9c53f5abc4729d7662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sun, 14 Apr 2024 01:33:43 +0200 Subject: [PATCH] Use PASSWORD_STORE_DIR --- bin/pass | 4 ++-- zsh/zprofile.j2 | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/pass b/bin/pass index fc7da13..c25f8c9 100755 --- a/bin/pass +++ b/bin/pass @@ -3,10 +3,10 @@ set -o nounset set -o errexit -if [[ ! -e ~/.password-store ]] ; then +if [[ ! -e "${PASSWORD_STORE_DIR}" ]] ; then printf '%s\n' 'This is the first time running pass, initializting repository ...' - git clone ssh://git@code.hkoerber.de:2222/hannes/passwordstore.git ~/.password-store + git clone ssh://git@code.hkoerber.de:2222/hannes/passwordstore.git "${PASSWORD_STORE_DIR}" printf '%s\n' 'Done' fi diff --git a/zsh/zprofile.j2 b/zsh/zprofile.j2 index 31e4aac..e16ebf1 100644 --- a/zsh/zprofile.j2 +++ b/zsh/zprofile.j2 @@ -44,6 +44,8 @@ export XDG_STATE_HOME="$HOME/.local/state" export GNUPGHOME="$HOME/.gnupg" +export PASSWORD_STORE_DIR="$HOME/.password-store" + umask 0022 {% set env = machine.environment | combine(user.environment) %}