From afd008d96bee0993ebbca697f93917b0897207bd Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 21 Jun 2018 13:28:24 +0200 Subject: 43073: various completion option updates --- Completion/Zsh/Command/_which | 7 ++++--- Completion/Zsh/Command/_zed | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'Completion/Zsh/Command') diff --git a/Completion/Zsh/Command/_which b/Completion/Zsh/Command/_which index c43704ae8..9b789c86b 100644 --- a/Completion/Zsh/Command/_which +++ b/Completion/Zsh/Command/_which @@ -1,6 +1,6 @@ #compdef which whence where type -local farg aarg cargs args state line curcontext="$curcontext" ret=1 +local farg aarg xarg cargs args state line curcontext="$curcontext" ret=1 cargs=( \ '(-v -c)-w[print command type]' \ @@ -11,6 +11,7 @@ cargs=( \ '*:commands:->command' ) farg='-f[output contents of functions]' aarg='-a[print all occurrences in path]' +xarg='-x+[specify spaces to use for indentation in function expansion]:spaces' case ${service} in whence) @@ -19,8 +20,8 @@ case ${service} in '(-v -w)-c[csh-like output]' \ "${cargs[@]}" "$farg" "$aarg" && ret=0 ;; - where) _arguments -C -s -A "-*" -S "${cargs[@]}" && ret=0;; - which) _arguments -C -s -A "-*" -S "${cargs[@]}" "$aarg" && ret=0;; + where) _arguments -C -s -A "-*" -S "${cargs[@]}" "$xarg" && ret=0;; + which) _arguments -C -s -A "-*" -S "${cargs[@]}" "$aarg" "$xarg" && ret=0;; type) _arguments -C -s -A "-*" -S "${cargs[@]}" "$aarg" "$farg" && ret=0;; esac diff --git a/Completion/Zsh/Command/_zed b/Completion/Zsh/Command/_zed index 211dae7df..6b68fadf0 100644 --- a/Completion/Zsh/Command/_zed +++ b/Completion/Zsh/Command/_zed @@ -5,5 +5,6 @@ case $service in (zed) _arguments -S : \ '(- 2):file:_files' \ '(1):shell function:_functions' \ + '(1)-x+[specify spaces to use for indentation in function expansion]:spaces' \ '(1)-f[edit function]';; esac -- cgit 1.4.1