diff options
author | Florian Pritz <f-p@gmx.at> | 2008-12-13 11:00:52 +0100 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2008-12-13 11:00:52 +0100 |
commit | 5519121f4094ab3461e7133a42811c2881e4d608 (patch) | |
tree | 3ba142912e9544de0d722ad13844aa8b84cf8f67 | |
parent | df4e95d196a430bbb6ee165787743d49927dc6de (diff) | |
download | dotfiles-5519121f4094ab3461e7133a42811c2881e4d608.tar.gz dotfiles-5519121f4094ab3461e7133a42811c2881e4d608.tar.xz |
fixed comp for rc
-rw-r--r-- | .zshrc | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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' |