diff options
author | Botond Hende <nettingman@gmail.com> | 2024-04-14 06:38:49 +0200 |
---|---|---|
committer | Botond Hende <nettingman@gmail.com> | 2024-04-14 06:38:49 +0200 |
commit | 0221492f62bcc1b766c2a4d5dbe26f6ff2ed8bc2 (patch) | |
tree | f91b7ada571a4dab7ae99c8f3ee252616baff2db /home/.selfconfigs/newsboat |
squashed init
Diffstat (limited to 'home/.selfconfigs/newsboat')
-rwxr-xr-x | home/.selfconfigs/newsboat/open-nb-unread | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/home/.selfconfigs/newsboat/open-nb-unread b/home/.selfconfigs/newsboat/open-nb-unread new file mode 100755 index 0000000..ff4809d --- /dev/null +++ b/home/.selfconfigs/newsboat/open-nb-unread @@ -0,0 +1,7 @@ +#!/bin/bash -eu + +newsboat -x reload +unread=$(newsboat -x print-unread) +if ! [[ "$unread" == 0* ]]; then + newsboat +fi |