added update w/ restart

This commit is contained in:
Yuriy 2024-07-06 16:42:47 -04:00
parent db2e0e902e
commit df847d0f80

11
.bashrc
View File

@ -364,7 +364,6 @@ parul(){
subl pkglist.txt subl pkglist.txt
} }
update() { update() {
paru -Sy archlinux-keyring chaotic-keyring endeavouros-keyring --noconfirm --needed # update keyrings paru -Sy archlinux-keyring chaotic-keyring endeavouros-keyring --noconfirm --needed # update keyrings
paru -Syu --noconfirm # update packages, no confirmation paru -Syu --noconfirm # update packages, no confirmation
@ -383,9 +382,19 @@ update() {
echo "Updating Flatpak packages:" echo "Updating Flatpak packages:"
flatpak update flatpak update
# 1 liner
# paru -Sy archlinux-keyring chaotic-keyring endeavouros-keyring --noconfirm --needed && paru -Syu --noconfirm && { [[ $(hostname) == "EOS-SERVER" ]] && echo "Skipping Clearing Update Cache" || (echo "Clearing out Pacman Cache" && echo clearing out $(sudo ls /var/cache/pacman/pkg/ | wc -l) packages in cache && ( echo "y"; echo "y" ) | paru -Scc); } && echo "updating arch mirrorlists" && eos-rankmirrors
} }
updatewr() {
# Run the Update function
# Restart
sudo reboot
}
rkeymapper(){ rkeymapper(){
sudo pkill keymapper sudo pkill keymapper
sudo systemctl restart keymapperd & keymapper & sudo systemctl restart keymapperd & keymapper &