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..c9a074d9b
--- /dev/null
+++ b/Functions/Completion/__unsetopt
@@ -0,0 +1,7 @@
+#function 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