-s now shows the full file Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
Anirudh Oppiliappan x@icyphox.sh
Mon, 13 Jan 2020 18:24:36 +0000
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
pw
→
pw
@@ -52,14 +52,14 @@ }
show() { checkf "$PW_DIR/$1.gpg" - gpg2 --decrypt --quiet --use-agent "$PW_DIR/$1.gpg" | head -1 + gpg2 --decrypt --quiet --use-agent "$PW_DIR/$1.gpg" } # TODO: rework having to checkf twice copy() { checkf "$PW_DIR/$1.gpg" - show "$1" | xclip -rmlastnl -selection clipboard + show "$1" | head -1 | xclip -rmlastnl -selection clipboard printf "pw: copied %s to clipboard" "$1" }