diff --git a/zshrc b/zshrc index c42cbef761..6c26602085 100644 --- a/zshrc +++ b/zshrc @@ -65,6 +65,10 @@ alias perl-rename='perl-rename -i' alias prename='perl-rename -i' alias encrypt='openssl enc -a -salt -aes-256-cbc' alias decrypt='encrypt -d' +alias start='sudo systemctl start' +alias stop='sudo systemctl stop' +alias restart='sudo systemctl restart' +alias status='sudo systemctl status' function dev() { sudo systemctl ${1:-start} \ @@ -85,30 +89,6 @@ function to-alac() { done } -function start() { - for d in $*; do - sudo systemctl start $d.service - done -} - -function stop(){ - for d in $*; do - sudo systemctl stop $d.service - done -} - -function restart(){ - for d in $*; do - sudo systemctl restart $d.service - done -} - -function status(){ - for d in $*; do - sudo systemctl status $d.service - done -} - function json-get() { curl -s "$1" | python -m json.tool }