dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 11eedf18a5e001272c79bc6deff289e630955aa8
parent e0b3cb05e4f473c1bf5cbe4352843afad472ca22
Author: hhvn <dev@hhvn.uk>
Date:   Sun, 11 Jul 2021 13:51:39 +0100

.s/b/plumb: handle PGP data

Diffstat:
M.scripts/bin/plumb | 13++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/.scripts/bin/plumb b/.scripts/bin/plumb @@ -103,6 +103,9 @@ do matches "^(gopher|http)s?://.*\.(jpe?g|gif|tiff?|ppm|bit|bmp|png|xpm)$" && plumb gui '$proxy netimg $arg' + matches "^(gopher|http)s?://.*\.(asc|gpg|pgp)$" && + fetch + matches "^https?://" || matches "\.html?$" || fmatches "HTML" && @@ -127,10 +130,18 @@ do plumb terminal '$proxy git clone $arg' # local files now - fmatches "PGP.*public.*key" && + fmatches "PGP.*public.*key|PGP.*ring" && isfile && plumb terminal "gpg --import $arg; sleep 5" + fmatches "PGP.*signature" && + isfile && + plumb terminal "gpg --verify $arg; sleep 5" + + fmatches "PGP.*message|PGP.*encrypted" && + isfile && + plumb terminal "gpg -d $arg; sleep 5" + matches ".*\.(epub|ps|eps|pdf|dvi|djvu)$" || fmatches "pdf|postscript" && isfile &&