diff options
author | xyz <gky44px1999@gmail.com> | 2021-11-16 21:31:26 -0800 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-11-16 21:31:26 -0800 |
commit | 3f9a413df17d73f31006037328c141f4f6eab6e5 (patch) | |
tree | 6eeb943e80cba2b155823e63f486f50b5b72b07e | |
parent | 61a1dee76a5ddd4dc4530226c0de3f920c548d9a (diff) |
integrate pacdiff
-rwxr-xr-x | home/xyz/.local/bin/upd | 3 | ||||
-rw-r--r-- | home/xyz/.profile | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd index 1c86ca24..4e7ec7ce 100755 --- a/home/xyz/.local/bin/upd +++ b/home/xyz/.local/bin/upd @@ -69,7 +69,8 @@ pac () { # sometimes "ERROR: Failure while downloading": https://github.com/neovim/neovim/issues/15709 rm -rf ~/.cache/paru/clone/neovim-nightly-bin/ && yes 1 | PARU_PAGER=cat paru --rebuild --redownload neovim-nightly-bin sudo pacman -Fy - log="$(printf '%s\nupdated pacman packages: %s\nupdated aur packages: %s\n' "$log" "$pacpacs" "$aurpacs")" + # pacdiff default use pacman database, so no need `sudo -E` for find, but will be a little bit slower + log="$(printf '%s\nupdated pacman packages: %s\nupdated aur packages: %s\npacdiff: %s\n' "$log" "$pacpacs" "$aurpacs" "$(pacdiff -o | tr '\n' ' ')")" } qb () { diff --git a/home/xyz/.profile b/home/xyz/.profile index 78548c5a..464e9938 100644 --- a/home/xyz/.profile +++ b/home/xyz/.profile @@ -49,6 +49,8 @@ export SXHKD_SHELL=sh export _ZO_ECHO=1 # enable color for `tree` command, not forced export CLICOLOR=1 +# for pacdiff, without using aur neovim-drop-in or neovim-symlinks +export DIFFPROG='nvim -d' # use sudo find for some files or dirs that has no permission ex: ~/.cache/paru/clone/ #export FZF_DEFAULT_COMMAND="fd --no-ignore --hidden --exclude .git" |