From 84ae214ebed0bc72b03dd22088b7b71bc395eb58 Mon Sep 17 00:00:00 2001 From: Phantop Date: Fri, 28 Jun 2024 23:09:23 -0400 Subject: [PATCH] fish: make miniflux refresh function --- fish/functions/reflux.fish | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 fish/functions/reflux.fish diff --git a/fish/functions/reflux.fish b/fish/functions/reflux.fish new file mode 100644 index 0000000..2670ae2 --- /dev/null +++ b/fish/functions/reflux.fish @@ -0,0 +1,5 @@ +function reflux + for i in (curlflux "$argv"feeds | jq -rc '.[] | select(.parsing_error_count!=0)') + eval curl "$(cat ~/.config/miniflux)/feeds/$(echo $i | jq -r .id)/refresh" -X PUT + end +end