diff options
Diffstat (limited to 'Completion/Builtins/_setopt')
-rw-r--r-- | Completion/Builtins/_setopt | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Completion/Builtins/_setopt b/Completion/Builtins/_setopt index b458cb2b0..e5a6c054f 100644 --- a/Completion/Builtins/_setopt +++ b/Completion/Builtins/_setopt @@ -1,11 +1,10 @@ #defcomp setopt -local nm=$compstate[nmatches] ret=1 - -compgen -M 'L:|[nN][oO]= M:_= M:{A-Z}={a-z}' \ - -s '$({ unsetopt kshoptionprint; unsetopt } 2>/dev/null)' && ret=0 - -[[ compstate[nmatches] -eq nm ]] && - compgen -M 'L:|[nN][oO]= M:_= M:{A-Z}={a-z}' -o && ret=0 - -return ret +# If you first want to complete only unset options, un-comment the lines +# setting the _unset_options array and then use: +# +# _unset_options || _options +# +# here. + +_options |