Skip to content

Commit

Permalink
Merge branch 'master' into turanga
Browse files Browse the repository at this point in the history
* master:
  transformed systemctl function into aliases
  • Loading branch information
autermann committed Nov 15, 2013
2 parents 96bd36f + deb82b8 commit 9940620
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -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} \
Expand All @@ -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
}
Expand Down

0 comments on commit 9940620

Please sign in to comment.