about summary refs log tree commit diff
path: root/Completion/Builtins/_set
blob: 297a15d3b33d60dd379cb61b8fb6ae71a1ceed90 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#compdef set

local prev="$words[CURRENT-1]" expl

if [[ "$prev" = [-+]o ]]; then
  _description expl 'zsh option'
  compgen "$expl[@]" -o
elif [[ "$prev" = -A ]]; then
  _description expl array
  compgen "$expl[@]" -A
fi