From a61d68fa7accdcabce4484e2d88cfb2dea69f914 Mon Sep 17 00:00:00 2001 From: Christian Autermann Date: Fri, 8 Nov 2013 22:43:50 +0100 Subject: [PATCH 1/4] setopt nonomatch --- zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zshrc b/zshrc index a8d8df47f2..107e2ff4cc 100644 --- a/zshrc +++ b/zshrc @@ -116,3 +116,5 @@ cdpath=('.' '..' '~') zstyle ':completion:*:complete:(cd|pushd):*' tag-order \ 'local-directories named-directories path-directories' zstyle ':completion:*' group-name '' + +setopt localoptions nonomatch From d60961655fcf1edc772e8b5bcd13fb211db87d54 Mon Sep 17 00:00:00 2001 From: Christian Autermann Date: Mon, 11 Nov 2013 22:17:25 +0100 Subject: [PATCH 2/4] add /var/run/media/$USER to cdpath --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 107e2ff4cc..31e4320812 100644 --- a/zshrc +++ b/zshrc @@ -112,7 +112,7 @@ function format-xml() { rm -f $T } -cdpath=('.' '..' '~') +cdpath=('.' '..' '~' /var/run/media/$USER) zstyle ':completion:*:complete:(cd|pushd):*' tag-order \ 'local-directories named-directories path-directories' zstyle ':completion:*' group-name '' From deb82b8dd36e67a82f554b8caa090cce30bdb54e Mon Sep 17 00:00:00 2001 From: Christian Autermann Date: Fri, 15 Nov 2013 16:03:21 +0100 Subject: [PATCH 3/4] 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 } From baf88e7f2ac3ae5e632ae7a8009c562d8ff292d5 Mon Sep 17 00:00:00 2001 From: Christian Autermann Date: Fri, 15 Nov 2013 21:17:30 +0100 Subject: [PATCH 4/4] added /media to cdpath --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 2a98cab57b..183b56ecaf 100644 --- a/zshrc +++ b/zshrc @@ -92,7 +92,7 @@ function format-xml() { rm -f $T } -cdpath=('.' '..' '~' /var/run/media/$USER) +cdpath=('.' '..' '~' '/media' /var/run/media/$USER) zstyle ':completion:*:complete:(cd|pushd):*' tag-order \ 'local-directories named-directories path-directories' zstyle ':completion:*' group-name ''