Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

pws-21: multiple -X in compadd



While testing something different ...

bor@itsrm2:~%> zsh -f
itsrm2% source /tools/share/zsh/functions/compinit
itsrm2% {
cursh> foo() {        
cursh function> compadd -J 1 -X "Options set 1" a111x a111y
cursh function> compadd -J 2 -X "Options set 2" a222x a222y
cursh function> }
cursh> }
itsrm2% compdef foo foo
itsrm2% foo a<TAB>
itsrm2% foo a
Options set 1
a111x   a111y   
Options set 2
a222x   a222y   (press TAB once more)
itsrm2% foo a111x
Options set 1Options set 2

/andrej



Messages sorted by: Reverse Date, Date, Thread, Author