about summary refs log tree commit diff
path: root/Completion/User/_x_options
blob: fddec2af4d5bacd5c8153310520cd295c8af7413 (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=''
  _hosts -S :0
else
  compadd -P- -J options - display name xrm
fi