summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2008-12-13 11:04:13 +0100
committerFlorian Pritz <f-p@gmx.at>2008-12-13 11:04:13 +0100
commit44d056f1daa054d55f698a6840f111ab91912188 (patch)
tree41ff39e49adc7c45f572bcf9effdb963b3b7879a
parent5519121f4094ab3461e7133a42811c2881e4d608 (diff)
downloaddotfiles-44d056f1daa054d55f698a6840f111ab91912188.tar.gz
dotfiles-44d056f1daa054d55f698a6840f111ab91912188.tar.xz
fixed comp for rc
-rw-r--r--.zshrc9
1 files changed, 4 insertions, 5 deletions
diff --git a/.zshrc b/.zshrc
index 582792d..d3b5819 100644
--- a/.zshrc
+++ b/.zshrc
@@ -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") }