blob: 98800152fb3730af168bf0ff4a49d99979de14a5 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
#defcomp setopt
local nm=$compstate[nmatches]
compgen -M 'L:|[nN][oO]= M:_= M:{A-Z}={a-z}' \
-s '$({ unsetopt kshoptionprint; unsetopt } 2>/dev/null)'
[[ compstate[nmatches] -eq nm ]] &&
compgen -M 'L:|[nN][oO]= M:_= M:{A-Z}={a-z}' -o
|