1 2 3 4 5 6 7 8 9 10 11 12 13
#compdef -p */X11/* local expl # A simple pattern completion, just as an example. if [ "$words[CURRENT-1]" = "-display" ]; then _compskip=all _hosts -S ':0 ' -r : else _description expl option compadd "$expl[@]" - -display -name -xrm fi