summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2008-12-13 11:00:52 +0100
committerFlorian Pritz <f-p@gmx.at>2008-12-13 11:00:52 +0100
commit5519121f4094ab3461e7133a42811c2881e4d608 (patch)
tree3ba142912e9544de0d722ad13844aa8b84cf8f67
parentdf4e95d196a430bbb6ee165787743d49927dc6de (diff)
downloaddotfiles-5519121f4094ab3461e7133a42811c2881e4d608.tar.gz
dotfiles-5519121f4094ab3461e7133a42811c2881e4d608.tar.xz
fixed comp for rc
-rw-r--r--.zshrc9
1 files changed, 8 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index 0eff85f..582792d 100644
--- a/.zshrc
+++ b/.zshrc
@@ -38,7 +38,14 @@ function _7slash {
fi
}
-function _rc () { compadd `ls /etc/rc.d/` }
+function _rc () {
+ if [ ! $words[2] ]; then
+ compadd `ls /etc/rc.d/`
+ else
+ compadd start stop restart reload
+ fi
+}
+
function _ssh-mount () { compadd $(cat ${HOME}/bin/ssh-mount.sh | egrep "Servers:.*" | sed "s#echo \-e \"\${green}Servers\:\$NC##g; s#\"\;##g; s#,##g") }
zstyle :compinstall filename '$HOME/.zshrc'