34 lines
848 B
Text
34 lines
848 B
Text
|
#!/usr/bin/env zsh
|
||
|
|
||
|
alias pkgfile-update="sudo pkgfile --update"
|
||
|
alias pac="yay"
|
||
|
# recommended hooks: pacman-cleanup-hook
|
||
|
alias pkg-upgrade="yay && pacman-orphans && sync"
|
||
|
alias pkg-upgrade-full="yay -Syyu --devel && pacman-orphans && sync"
|
||
|
alias pacdiff-merge='sudo DIFFPROG=vimdiff DIFFSEARCHPATH="/boot /etc /usr" pacdiff'
|
||
|
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
|
||
|
}
|