From 43247252ddeedcf3955b030f2c77064089581cb0 Mon Sep 17 00:00:00 2001 From: dana Date: Mon, 17 Dec 2018 14:49:33 -0600 Subject: 43897: Add/update various completion functions * Update tail to support -q/-v on NetBSD * Add several new functions (with one change needed to _hosts compdefs) --- Completion/Unix/Command/_visudo | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Completion/Unix/Command/_visudo (limited to 'Completion/Unix/Command/_visudo') diff --git a/Completion/Unix/Command/_visudo b/Completion/Unix/Command/_visudo new file mode 100644 index 000000000..2cb6d85a5 --- /dev/null +++ b/Completion/Unix/Command/_visudo @@ -0,0 +1,12 @@ +#compdef visudo + +_arguments -s -S : \ + '(: * -)'{-h,--help}'[display help information]' \ + '(: * -)'{-V,--version}'[display version information]' \ + '(-f --file)'{-f+,--file=}'[specify sudoers file]:sudoers file:_files' \ + + c \ + '(x -c --check)'{-c,--check}'[check sudoers file for errors only]' \ + '(-q --quiet)'{-q,--quiet}'[suppress error messages (with -c)]' \ + '(x -s --strict)'{-s,--strict}'[enable strict checking]' \ + + '(x)' \ + '(c)'{-x+,--export=}'[export sudoers file to specified JSON output file]:JSON output file:_files' -- cgit 1.4.1