about summary refs log tree commit diff
path: root/Functions/Completion/__setopt
blob: 8a97befc78dd77551a77690f5a2f515d6918bb8a (plain) (blame)
1
2
3
4
5
6
7
#function setopt

local nm=$NMATCHES

complist -M 'L:|[nN][oO]= M:_= M:{A-Z}={a-z}' \
         -s '$({ unsetopt kshoptionprint; unsetopt } 2>/dev/null)'
[[ -nmatches nm ]] && complist -M 'L:|[nN][oO]= M:_= M:{A-Z}={a-z}' -o