More aliases

This commit is contained in:
Mark Vainomaa 2018-02-03 03:06:45 +02:00
parent 115104150f
commit c48f5704d5
Signed by: mikroskeem
GPG Key ID: 1B3F9523B542D315

View File

@ -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
}