From deb82b8dd36e67a82f554b8caa090cce30bdb54e Mon Sep 17 00:00:00 2001 From: Christian Autermann Date: Fri, 15 Nov 2013 16:03:21 +0100 Subject: [PATCH] transformed systemctl function into aliases --- zshrc | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/zshrc b/zshrc index 31e4320812..2a98cab57b 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 calc() { @@ -77,30 +81,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 }