about summary refs log tree commit diff
path: root/Completion/Base/_subscript
blob: abaabec8c2edebe88c87cf84f5e833fda2f1c041 (plain) (blame)
1
2
3
4
5
6
7
#compdef -subscript-

if [[ ${(Pt)${compstate[parameter]}} = assoc* ]]; then
  compgen -S ']' -k "( ${(kP)${compstate[parameter]}} )"
else
  _compalso -math-
fi