about summary refs log tree commit diff
path: root/Completion/User
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-08-24 09:17:41 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-08-24 09:17:41 +0000
commit6fd5c631d6293763c3c8be1068387828201095da (patch)
tree91b977ab08c52a4184d30307c8f3c5d9967b51a7 /Completion/User
parent9e879a8a68c52a4a0319fcc0eb8a6c2ab565a4e4 (diff)
downloadzsh-6fd5c631d6293763c3c8be1068387828201095da.tar.gz
zsh-6fd5c631d6293763c3c8be1068387828201095da.tar.xz
zsh-6fd5c631d6293763c3c8be1068387828201095da.zip
zsh-workers/7469
Diffstat (limited to 'Completion/User')
-rw-r--r--Completion/User/_x_display3
-rw-r--r--Completion/User/_x_options5
-rw-r--r--Completion/User/_xterm4
3 files changed, 7 insertions, 5 deletions
diff --git a/Completion/User/_x_display b/Completion/User/_x_display
new file mode 100644
index 000000000..e3f9af479
--- /dev/null
+++ b/Completion/User/_x_display
@@ -0,0 +1,3 @@
+#autoload
+
+_hosts -S ':0 ' -r :
diff --git a/Completion/User/_x_options b/Completion/User/_x_options
index 4e6b6ba80..fd8d2034e 100644
--- a/Completion/User/_x_options
+++ b/Completion/User/_x_options
@@ -1,12 +1,11 @@
-#compdef -p */X11/*
+#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 :
+  _x_display
 else
   _description expl option  
   compadd "$expl[@]" - -display -name -xrm
diff --git a/Completion/User/_xterm b/Completion/User/_xterm
index 3e6da8a41..074061d5f 100644
--- a/Completion/User/_xterm
+++ b/Completion/User/_xterm
@@ -19,7 +19,7 @@ _arguments \
   '-cr:text cursor color:_color' \
   '-cu' '+cu' \
   '-dc' '+dc' \
-  '-e:*::program: _normal' \
+  '-e:program: _command_names -e:*::program arguments: _normal' \
   '-fb:bold font:' \
   '-fi:icon font:' \
   '-hc:background color for highlighted text:_color' \
@@ -61,7 +61,7 @@ _arguments \
   '-bd:border color:_color' \
   '-bg:background color:_color' \
   '-bw:border width:' \
-  '-display:display:' \
+  '-display:display:_x_display' \
   '-fg:foreground color:_color' \
   '-fn:font:' \
   '-geometry:geometry:' \