From aaa35414a9915c50e819ebd1551454f45956b517 Mon Sep 17 00:00:00 2001 From: drduh Date: Fri, 31 Jul 2015 00:14:09 -0400 Subject: [PATCH] Update README instructions and zap args variable --- README.md | 10 +++++++--- pwd.sh | 1 - 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fef17e2..aee03c9 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,18 @@ Install with `brew install gpg` or `sudo apt-get install gnupg` or build and ins # Use -Run the script with `./pwd.sh` - +Run the script interactively with `./pwd.sh` + Type `w` to write a password. -Type `r` to read a password or all passwords. +Type `r` to read a password(s). Type `d` to delete a password. +Or, the action and username can be passed on the command line, e.g., + +`./pwd.sh r github` or `./pwd.sh w gmail` + The encrypted file `pwd.sh.safe` and script can be safely shared between machines over public channels (Google Drive, Dropbox, etc). A sample `gpg.conf` configuration file is provided for your consideration. diff --git a/pwd.sh b/pwd.sh index 9e7315f..66639d1 100755 --- a/pwd.sh +++ b/pwd.sh @@ -6,7 +6,6 @@ set -o errtrace set -o nounset set -o pipefail -args=("$@") gpg=$(command -v gpg || command -v gpg2) safe=${PWDSH_SAFE:=pwd.sh.safe}