about summary refs log tree commit diff
path: root/Completion/User/_x_options
blob: 9c3a303bb683dfde2c1286f272502203968bbab0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#compdef -p */X11/*

# A simple pattern completion, just as an example.

if [ "$words[CURRENT-1]" = "-display" ]; then
  _compskip=all
  _hosts -S ':0 ' -r :
else
  compadd -J options - -display -name -xrm
fi