citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit e4ee1b5bca5226a72d419e91cc5d674a0e32bfde
parent 50d53c3d05d363623da5671b2fdbd983ce77dd5b
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 12 Aug 2022 15:24:29 -0700

ghpatch, tailrun, etc

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Abin/fuzz-notmuch-ghpatch | 8++++++++
Abin/notmuch-ghpatch | 7+++++++
Abin/show-nostr-msg | 7+++++++
Abin/tailrun | 9+++++++++
Mdotfiles/commands | 1+
5 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/bin/fuzz-notmuch-ghpatch b/bin/fuzz-notmuch-ghpatch @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -e + +thread=$(notmuch search --format=json ${1:-tag:github and date:week..} | notmuch-select-threads) + +echo "notmuch show $thread | mail-prpatch" + diff --git a/bin/notmuch-ghpatch b/bin/notmuch-ghpatch @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -e + +thread=$(notmuch search --format=json ${1:-query:inbox and tag:github} | notmuch-select-threads) + +notmuch show $thread | mail-prpatch diff --git a/bin/show-nostr-msg b/bin/show-nostr-msg @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -e + +content=$(jq -r '.[2] | "\(.pubkey):\n\n\(.content)"') + +notify-send -u critical "$content" diff --git a/bin/tailrun b/bin/tailrun @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +file=$1 + +shift + +while read line; do + echo "$line" | ${@//\{\}/$line} +done < <(tail -n0 -f $file) diff --git a/dotfiles/commands b/dotfiles/commands @@ -49,6 +49,7 @@ Nc new command echo make-script ni notmuch inbox fuzz-notmuch-inbox nT email today echo f nt query:today nt notmuch threads fuzz-notmuch-threads +ng notmuch github patch fuzz-notmuch-ghpatch of open file fuzz-open-file olf open last files fuzz-last-files open pc cat project file fuzz-cat-file