From 6ab7400b3a1d97862cebffb90eb1cb9b11efd866 Mon Sep 17 00:00:00 2001 From: xyz Date: Mon, 20 Sep 2021 23:35:33 -0700 Subject: upd pac total auto, paru config, refactor mpvy --- .local/bin/mpvy | 4 ++-- .local/bin/upd | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to '.local/bin') diff --git a/.local/bin/mpvy b/.local/bin/mpvy index 26fc1fb5..47c6a9e5 100755 --- a/.local/bin/mpvy +++ b/.local/bin/mpvy @@ -13,8 +13,8 @@ notify () notify-send 'mpvsel failed' } -# can improve to make s, a, A mutually exclusive, see curlncm, maybe not, not necessary -# option f and h may do nothing if redownload? since same filename exist, haven't tested. yt-dlp won't download same file even without --auto-file-renameing=false. how improve? +# can improve to make some options mutually exclusive, see curlncm, maybe not +# option f and h may do nothing if redownload? since same filename exist. yt-dlp won't download same file even without --auto-file-renameing=false. how improve? pass argument to aria2c? while getopts Aabd:f:h:su: opt; do case $opt in # s: streaming, a: aria2c then mpv, A: aria2c diff --git a/.local/bin/upd b/.local/bin/upd index 06e527a1..6ec24947 100755 --- a/.local/bin/upd +++ b/.local/bin/upd @@ -47,8 +47,8 @@ pac () { sudo pacman --noconfirm -Syu paru --noconfirm -Syu - # not fully understand - #rm ~/.cache/paru/clone/neovim-nightly-bin/ -rf && yes 1 | paru --rebuild --redownload neovim-nightly-bin + # part steal from aur comment + rm -rf ~/.cache/paru/clone/neovim-nightly-bin/ && yes 1 | PARU_PAGER=cat paru --rebuild --redownload neovim-nightly-bin sudo pacman -Fy } @@ -58,7 +58,6 @@ qb () curlqb "$HOME/programs/qbittorrent_search_plugins/" } - refl () { sudo reflector --save /etc/pacman.d/mirrorlist --latest 200 --sort rate -- cgit v1.2.3-70-g09d2