Skip to content

Commit

Permalink
Merge branch 'master' into bender
Browse files Browse the repository at this point in the history
* master:
  transformed systemctl function into aliases
  add /var/run/media/$USER to cdpath
  setopt nonomatch

Conflicts:
	zshrc
  • Loading branch information
autermann committed Nov 15, 2013
2 parents 904e04a + deb82b8 commit 8c63b22
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 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 calc() {
Expand All @@ -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
}
Expand All @@ -125,7 +105,9 @@ function relink() {
done
}

cdpath=('.' '..' '~')
cdpath=('.' '..' '~' /var/run/media/$USER)
zstyle ':completion:*:complete:(cd|pushd):*' tag-order \
'local-directories named-directories path-directories'
zstyle ':completion:*' group-name ''

setopt localoptions nonomatch

0 comments on commit 8c63b22

Please sign in to comment.