diff options
-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" |