If pass is not using the default ~/.password-store directory, make the show command print the directory being used. For example:
Password Store (/home/george/.pass1) ├── 192.168.2.7 │ └── user-root ├── graphite ├── gitlab └── github
From 2d5735fd6d60ad84ffad074045395e91f2737a1e Mon Sep 17 00:00:00 2001 From: George Angelopoulos <[email protected]> Date: Fri, 17 Oct 2014 17:47:28 +0300 Subject: [PATCH] show: print password-store dir if not default --- src/password-store.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/password-store.sh b/src/password-store.sh index c85cc33..404134d 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -328,7 +328,11 @@ cmd_show() { fi elif [[ -d $PREFIX/$path ]]; then if [[ -z $path ]]; then - echo "Password Store" + if [[ -n $PASSWORD_STORE_DIR ]]; then + echo "Password Store ($PREFIX)" + else + echo "Password Store" + fi else echo "${path%\/}" fi -- 2.1.2
_______________________________________________ Password-Store mailing list [email protected] http://lists.zx2c4.com/mailman/listinfo/password-store
