password-store

Simple password manager using gpg and ordinary unix directories
git clone https://git.zx2c4.com/password-store
Log | Files | Refs | README | LICENSE

commit 0dfa85e3dbbe40e2f7fa11c749bea3253492e9b4
parent 00e44ed94b0e40345492bd513066ea2c50778c27
Author: Jason A. Donenfeld <Jason@zx2c4.com>
Date:   Sat,  8 Sep 2012 18:49:26 +0200

Only copy the first line of the password file to the clipboard.

Diffstat:
Mman/pass.1 | 4++--
Msrc/password-store.sh | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/man/pass.1 b/man/pass.1 @@ -65,8 +65,8 @@ program. This command is alternatively named \fBlist\fP. .TP \fBshow\fP [ \fI--clip\fP, \fI-c\fP ] \fIpass-name\fP Decrypt and print a password named \fIpass-name\fP. If \fI--clip\fP or \fI-c\fP -is specified, do not print the password but instead copy it to the clipboard -using +is specified, do not print the password but instead copy the first line to the +clipboard using .BR xclip (1) and then restore the clipboard after 45 seconds. .TP diff --git a/src/password-store.sh b/src/password-store.sh @@ -134,7 +134,7 @@ case "$command" in if [ $clip -eq 0 ]; then exec gpg -q -d "$passfile" else - clip "$(gpg -q -d "$passfile")" "$path" + clip "$(gpg -q -d "$passfile" | head -n 1)" "$path" fi fi ;;