diff options
author | Florian Pritz <f-p@gmx.at> | 2008-12-13 11:04:13 +0100 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2008-12-13 11:04:13 +0100 |
commit | 44d056f1daa054d55f698a6840f111ab91912188 (patch) | |
tree | 41ff39e49adc7c45f572bcf9effdb963b3b7879a | |
parent | 5519121f4094ab3461e7133a42811c2881e4d608 (diff) | |
download | dotfiles-44d056f1daa054d55f698a6840f111ab91912188.tar.gz dotfiles-44d056f1daa054d55f698a6840f111ab91912188.tar.xz |
fixed comp for rc
-rw-r--r-- | .zshrc | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -39,11 +39,10 @@ function _7slash { } function _rc () { - if [ ! $words[2] ]; then - compadd `ls /etc/rc.d/` - else - compadd start stop restart reload - fi + case $CURRENT in + 2) compadd `ls /etc/rc.d/`;; + 3) compadd start stop restart reload;; + esac } function _ssh-mount () { compadd $(cat ${HOME}/bin/ssh-mount.sh | egrep "Servers:.*" | sed "s#echo \-e \"\${green}Servers\:\$NC##g; s#\"\;##g; s#,##g") } |