From 6fd5c631d6293763c3c8be1068387828201095da Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 24 Aug 1999 09:17:41 +0000 Subject: zsh-workers/7469 --- Completion/User/_x_display | 3 +++ Completion/User/_x_options | 5 ++--- Completion/User/_xterm | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 Completion/User/_x_display (limited to 'Completion/User') 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:' \ -- cgit 1.4.1