32 lines
No EOL
849 B
Bash
32 lines
No EOL
849 B
Bash
#!/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"
|
|
alias pacdiff-merge='sudo DIFFPROG=meld 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
|
|
} |