comparison zshrc-systemd @ 144:383ea800bf98

include sudo
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 17 Sep 2018 09:19:03 +0200
parents 129d5bcd9814
children
comparison
equal deleted inserted replaced
143:870bb3be824f 144:383ea800bf98
1 function sc() { 1 function sc() {
2 systemctl $2 $1 2 local SUDO=""
3
4 if [[ $USER != "root" ]]; then
5 SUDO="sudo"
6 fi
7 $SUDO systemctl $2 $1
3 } 8 }