about summary refs log tree commit diff
path: root/Functions/Completion/_setopt
blob: 4abb3ccee6eae19c291f2b1ddac4d952ba60b5eb (plain) (blame)
1
2
3
4
5
6
7
#defcomp 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