From aeed51fdfcdc10b6f866c9ff794c5baa99d1b39e Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 10 Oct 2017 10:00:57 +0100 Subject: unposted: rename _expand command completion to avoid clash with completer --- Completion/Unix/Command/_expand | 16 ---------------- Completion/Unix/Command/_expand_cmd | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 Completion/Unix/Command/_expand create mode 100644 Completion/Unix/Command/_expand_cmd (limited to 'Completion') diff --git a/Completion/Unix/Command/_expand b/Completion/Unix/Command/_expand deleted file mode 100644 index 3f297dce2..000000000 --- a/Completion/Unix/Command/_expand +++ /dev/null @@ -1,16 +0,0 @@ -#compdef expand gexpand - -local -a args - -if _pick_variant gnu=GNU unix --version; then - args=( - '(-i --initial --help)'{-i,--initial}"[don't convert tabs after non blanks]" - '(-t --tabs --version)'{-t+,--tabs=}'[specify tab width]:list of tab positions' - '(* -)--help[display usage information]' - '(* -)--version[output version information]' - ) -else - args=( -A "-*" '(-t --tabs)'{-t+,--tabs=}'[specify tab width]:list of tab positions' ) -fi - -_arguments -s -S "$args[@]" '*:file:_files' diff --git a/Completion/Unix/Command/_expand_cmd b/Completion/Unix/Command/_expand_cmd new file mode 100644 index 000000000..3f297dce2 --- /dev/null +++ b/Completion/Unix/Command/_expand_cmd @@ -0,0 +1,16 @@ +#compdef expand gexpand + +local -a args + +if _pick_variant gnu=GNU unix --version; then + args=( + '(-i --initial --help)'{-i,--initial}"[don't convert tabs after non blanks]" + '(-t --tabs --version)'{-t+,--tabs=}'[specify tab width]:list of tab positions' + '(* -)--help[display usage information]' + '(* -)--version[output version information]' + ) +else + args=( -A "-*" '(-t --tabs)'{-t+,--tabs=}'[specify tab width]:list of tab positions' ) +fi + +_arguments -s -S "$args[@]" '*:file:_files' -- cgit 1.4.1