1
0
mirror of https://github.com/octoleo/Purse.git synced 2024-12-28 20:12:38 +00:00

Update README instructions and zap args variable

This commit is contained in:
drduh 2015-07-31 00:14:09 -04:00
parent 225b572910
commit aaa35414a9
2 changed files with 7 additions and 4 deletions

View File

@ -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.

1
pwd.sh
View File

@ -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}