about summary refs log tree commit diff
path: root/Completion/User/_x_options
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-08-13 13:57:54 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-08-13 13:57:54 +0000
commit2d8280a3a771a991b95fbf771a4cd37525227c13 (patch)
tree5eb6b5d6e12923dec383e062bc8e3891d13d290c /Completion/User/_x_options
parentbcfde8db0082ae65cbc2ca9e7b34161984c8fd80 (diff)
downloadzsh-2d8280a3a771a991b95fbf771a4cd37525227c13.tar.gz
zsh-2d8280a3a771a991b95fbf771a4cd37525227c13.tar.xz
zsh-2d8280a3a771a991b95fbf771a4cd37525227c13.zip
sync up with zsh-workers_7430. #CVSPS.NO.BRANCH
Diffstat (limited to 'Completion/User/_x_options')
-rw-r--r--Completion/User/_x_options7
1 files changed, 6 insertions, 1 deletions
diff --git a/Completion/User/_x_options b/Completion/User/_x_options
index cd45c87f6..9c3a303bb 100644
--- a/Completion/User/_x_options
+++ b/Completion/User/_x_options
@@ -2,4 +2,9 @@
 
 # A simple pattern completion, just as an example.
 
-compgen -J options -k '(-display -name -xrm)'
+if [ "$words[CURRENT-1]" = "-display" ]; then
+  _compskip=all
+  _hosts -S ':0 ' -r :
+else
+  compadd -J options - -display -name -xrm
+fi