summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-11-16 21:31:26 -0800
committerxyz <gky44px1999@gmail.com>2021-11-16 21:31:26 -0800
commit3f9a413df17d73f31006037328c141f4f6eab6e5 (patch)
tree6eeb943e80cba2b155823e63f486f50b5b72b07e
parent61a1dee76a5ddd4dc4530226c0de3f920c548d9a (diff)
integrate pacdiff
-rwxr-xr-xhome/xyz/.local/bin/upd3
-rw-r--r--home/xyz/.profile2
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"