2019-07-26 15:04:50 +00:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
|
|
|
alias pkgfile-update="sudo pkgfile --update"
|
|
|
|
alias pac="yay"
|
|
|
|
alias pkg-upgrade="yay && pacman-orphans && sudo paccache -rk 2 && sync"
|
|
|
|
alias pkg-upgrade-full="yay -Syyu --devel && pacman-orphans && sudo paccache -rk 2 && sync"
|
2021-05-25 16:49:26 +00:00
|
|
|
alias pacdiff-merge='sudo DIFFPROG=vimdiff DIFFSEARCHPATH="/boot /etc /usr" pacdiff'
|
2019-07-26 15:04:50 +00:00
|
|
|
alias font-cache-update='sudo fc-cache -vf'
|
|
|
|
alias mkinitcpio-linux='sudo mkinitcpio -p linux'
|
|
|
|
|
|
|
|
pacman-orphans() {
|
|
|
|
if [[ ! -n $(pacman -Qdt) ]]; then
|
|
|
|
echo "No orphans to remove."
|
|
|
|
else
|
|
|
|
sudo pacman -Rns $(pacman -Qdtq)
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
pacman-unneeded() {
|
|
|
|
ignoregrp="base base-devel"
|
|
|
|
ignorepkg=""
|
|
|
|
|
|
|
|
comm -23 <(pacman -Qqt | sort) <(echo $ignorepkg | tr ' ' '\n' | cat <(pacman -Sqg $ignoregrp) - | sort -u)
|
|
|
|
}
|
|
|
|
|
|
|
|
pacman-modified() {
|
|
|
|
pacman -Qii | awk '/^MODIFIED/ {print $2}'
|
|
|
|
}
|
|
|
|
|
|
|
|
pacman-disowned() {
|
|
|
|
sudo lostfiles
|
2021-05-25 16:49:26 +00:00
|
|
|
}
|