dotfiles

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

commit cc47d776ff72336a4c494ac525a372d4c165ba7f
parent a293cf7dac5b9a45121be5a9f93b26c8c25a0dbd
Author: hhvn <dev@hhvn.uk>
Date:   Fri, 16 Jul 2021 13:19:58 +0100

.s/b/plumb: uncompression

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

diff --git a/.scripts/bin/plumb b/.scripts/bin/plumb @@ -48,6 +48,10 @@ plumb(){ prompt) >/dev/null nohup ${TERMINAL:-st} sh -c "$(dmenu -i -p "$*"); rm '$file'" & ;; + matchlater) + export norun=0 + >/dev/null nohup sh -c "$*" & + ;; *) herbe "No such plumb-type: $t" ;; @@ -141,6 +145,14 @@ do plumb terminal '$proxy git clone $arg' # local files now + fmatches "gzip" && + isfile && + plumb matchlater 'gunzip < $arg > $arg.new && mv $arg.new $arg' + + fmatches "zip.*archive" && + isfile + plumb matchlater 'unzip -p $arg > $arg.new && mv $arg.new $arg' + fmatches "PGP.*public.*key|PGP.*ring" && isfile && plumb terminal 'gpg --import $arg; sleep 5'