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