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