diff --git a/modules/aliases.zsh b/modules/aliases.zsh index 444f1af..9a6f374 100644 --- a/modules/aliases.zsh +++ b/modules/aliases.zsh @@ -30,3 +30,22 @@ alias mkdir="mkdir -p" alias dmesg="dmesg -L" alias ip="ip -c" alias diff="diff --color" + +# Anti-oops +alias poweroff="echo nope" + +# Arch Linux "bite a bullet" aliases +function pacreboot { + pacman --noconfirm -Syu "${@}" + systemctl reboot +} + +function pacpoweroff { + pacman --noconfirm -Syu "${@}" + systemctl poweroff +} + +function pacsuspend { + pacman --noconfirm -Syu "${@}" + systemctl suspend +}