ZSH aliases: Use loginctl instead of sudo for reboot/poweroff.

This commit is contained in:
Viyurz 2024-03-04 11:09:30 +01:00
parent 8566306fcf
commit a5917e4c17
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8

View file

@ -1,6 +1,6 @@
if grep -q '^NAME="Artix Linux"$' /etc/os-release; then
alias reboot="sudo reboot"
alias poweroff="sudo poweroff"
alias reboot="loginctl reboot"
alias poweroff="loginctl poweroff"
fi
alias ssh="TERM=xterm-256color ssh"