From a5f749cd4ae786d81f30bea16d95d10233d79fb8 Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Tue, 14 Oct 2025 11:44:47 +0900 Subject: [PATCH] update exportfs --- src/_exportfs | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/src/_exportfs b/src/_exportfs index 1265e32..053c78f 100644 --- a/src/_exportfs +++ b/src/_exportfs @@ -37,15 +37,22 @@ # * Timofey Titovets # # ------------------------------------------------------------------------------ -_exportfs() { - _values -w 'option' \ - '(-i)-a[Export or unexport all directories]' \ - '(-a -r -u)-i[Ignore the /etc/exports file and files under /etc/exports.d directory]' \ - '(-i)-r[Reexport all directories]' \ - '(-i)-u[Unexport one or more directories]' \ - '-f[Flush everything out of export table]' \ - '-o[option1,option2.. Specify a list of export options]' \ - '-s[Display the current export list suitable for /etc/exports]' \ - '-v[Be verbose]' -} -_exportfs "$@" + +_arguments \ + '(-d --debug)'{-d,--debug}'[Turn on debugging]:kind:(all auth call general parse)' \ + '(-i)-a[Export or unexport all directories]' \ + '(-a -r -u)-i[Ignore the /etc/exports file and files under /etc/exports.d directory]' \ + '-o[Specify a list of export options in the same manner as in exports]:option' \ + '(-i)-r[Reexport all directories]' \ + '(-i)-u[Unexport one or more directories]' \ + "-f[Flush everything out of kernel's export table]" \ + '-v[Be verbose]' \ + '-s[Display the current export list suitable for /etc/exports]' + +# Local Variables: +# mode: Shell-Script +# sh-indentation: 2 +# indent-tabs-mode: nil +# sh-basic-offset: 2 +# End: +# vim: ft=zsh sw=2 ts=2 et