about summary refs log tree commit diff
path: root/Functions/Completion/_unsetopt
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Completion/_unsetopt')
-rw-r--r--Functions/Completion/_unsetopt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Functions/Completion/_unsetopt b/Functions/Completion/_unsetopt
new file mode 100644
index 000000000..90d642b51
--- /dev/null
+++ b/Functions/Completion/_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