summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-09-12 02:05:53 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-09-12 02:05:53 +0200
commit6ecdfe3844eec6e3d3f2d04c506c75114d97a5ec (patch)
treed52e674a1dd3cb2e1a61cd6ddb6d35e1dad6413d /src
parentf423a27d4da8a1b830e368d846880886470b22dd (diff)
downloadpass-6ecdfe3844eec6e3d3f2d04c506c75114d97a5ec.tar.gz
pass-6ecdfe3844eec6e3d3f2d04c506c75114d97a5ec.tar.bz2
pass-6ecdfe3844eec6e3d3f2d04c506c75114d97a5ec.zip
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 <si@eskp.net>
Diffstat (limited to '')
-rwxr-xr-xsrc/password-store.sh2
1 files changed, 1 insertions, 1 deletions
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"