about summary refs log tree commit diff
path: root/Completion/User/_x_options
blob: 4e6b6ba80e4fef02d98cb55e0670f389db8d458c (plain) (blame)
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