added update w/ restart
This commit is contained in:
parent
db2e0e902e
commit
df847d0f80
11
.bashrc
11
.bashrc
@ -364,7 +364,6 @@ parul(){
|
||||
subl pkglist.txt
|
||||
}
|
||||
|
||||
|
||||
update() {
|
||||
paru -Sy archlinux-keyring chaotic-keyring endeavouros-keyring --noconfirm --needed # update keyrings
|
||||
paru -Syu --noconfirm # update packages, no confirmation
|
||||
@ -383,9 +382,19 @@ update() {
|
||||
|
||||
echo "Updating Flatpak packages:"
|
||||
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(){
|
||||
sudo pkill keymapper
|
||||
sudo systemctl restart keymapperd & keymapper &
|
||||
|
Loading…
Reference in New Issue
Block a user