From 6ecdfe3844eec6e3d3f2d04c506c75114d97a5ec Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 12 Sep 2012 02:05:53 +0200 Subject: Use PASSWORD_STORE_DIR environment variable if it is set. A user made this request: I was wondering whether it is in a planning to have multiple password-store directory trees or possible to achieve? eg. $HOME/.pwd-store-work and $HOME/.pwd-store-home. Maybe distinguish them with a command line switch and then create aliases in .bash_aliases? Why I'm asking is that I have multiple major password categories - personal, work etc. It'll be nice to keep them separate and under different repos. Reported-by: Simon KP --- src/password-store.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/password-store.sh') diff --git a/src/password-store.sh b/src/password-store.sh index b5b657f..fe306b7 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -5,7 +5,7 @@ umask 077 -PREFIX="$HOME/.password-store" +PREFIX="${PASSWORD_STORE_DIR:-$HOME/.password-store}" ID="$PREFIX/.gpg-id" GIT="$PREFIX/.git" -- cgit v1.2.3-54-g00ecf