~kris/dots

srice

ref: a4bfa48cdda924f7a77a81e8d8e93e326a01b8a0 srice/.local/bin/misc/podentr -rwxr-xr-x 238 bytes
a4bfa48c — Kris Yotam mksh: reliable history hook via HISTFILE growth + binary record parse 2 months ago
                                                                                
1
2
3
4
5
6
7
#!/bin/sh

# entr command to run `queueandnotify` when newsboat queue is changed

[ "$(pgrep -x "$(basename "$0")" | wc -l)" -gt 2 ] && exit

echo "${XDG_DATA_HOME:-$HOME/.local/share}"/newsboat/queue | entr -p queueandnotify 2>/dev/null