diff --git a/scripts/showpass.sh b/scripts/showpass.sh index 794af99..f56d83b 100755 --- a/scripts/showpass.sh +++ b/scripts/showpass.sh @@ -1,11 +1,21 @@ #!/bin/sh -# If you make a symlink from dmzadmin/credentials to your password -# store, you can search through those passwords like any other. -# Or, you can search through those passwords even faster with this script. +# If you want to add these passwords to the `pass` program, you can +# symlink all the passwords which you can open, then open the +# passwords with a script like this. pass_store=~/.password-store +# THIS_PLACE="$PWD" +# mkdir $pass_store/dmz +# cd !$ +# find "$THIS_PLACE" -type f -name "*.gpg" | \ +# sed "s#/home/ghost#../..#" | \ +# while read -r line; do +# gpg -d "$line" && ln -sf "$line" . +# done + + sanity_check(){ command -v $1 >/dev/null || ( echo "You must install $1"