summary refs log tree commit diff
path: root/Completion/Builtins/_unsetopt
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Builtins/_unsetopt')
-rw-r--r--Completion/Builtins/_unsetopt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Completion/Builtins/_unsetopt b/Completion/Builtins/_unsetopt
new file mode 100644
index 000000000..90d642b51
--- /dev/null
+++ b/Completion/Builtins/_unsetopt
@@ -0,0 +1,7 @@
+#defcomp unsetopt
+
+local nm=$NMATCHES
+
+complist -M 'L:|[nN][oO]= M:_= M:{A-Z}={a-z}' \
+         -s '$({ unsetopt kshoptionprint; setopt } 2>/dev/null)'
+[[ -nmatches nm ]] && complist -M 'L:|[nN][oO]= M:_= M:{A-Z}={a-z}' -o