mirror of
https://github.com/Phantop/dotfiles
synced 2024-11-25 00:03:29 +00:00
fish: make miniflux refresh function
This commit is contained in:
parent
2c2d5b9ce9
commit
84ae214ebe
5
fish/functions/reflux.fish
Normal file
5
fish/functions/reflux.fish
Normal file
|
@ -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
|
Loading…
Reference in a new issue