1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-16 20:02:47 +00:00

fish: adjust ytflux and clean for -w home

This commit is contained in:
Phantop 2023-11-13 13:44:36 -05:00
parent 557f5cc69b
commit 939636914e
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
#shellcheck disable=SC2046
yay -Scc
fc-cache -frvs
rm -r ~/.cache ~/.wine ~/.local/pipx/.cache/
rm -r ~/.cache/* ~/.wine/* ~/.local/pipx/.cache/
fish -c "j --purge"
doas journalctl --vacuum-size=1K
bleachbit -c $(bleachbit -l|rg -v 'system.free_disk_space|system.memory')

View file

@ -1,6 +1,6 @@
function ytflux
set cat 3
set entries (eval curl (cat ~/.miniflux)/entries?status=unread\&category_id=$cat | jq -r .entries[].url)
eval curl -X PUT (cat ~/.miniflux)/categories/$cat/mark-all-as-read
set entries (eval curl (cat ~/.config/miniflux)/entries?status=unread\&category_id=$cat | jq -r .entries[].url)
eval curl -X PUT (cat ~/.config/miniflux)/categories/$cat/mark-all-as-read
parallel -u yt-dlp ::: $entries
end