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

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

if [[ "$prev" = [-+]o ]]; then
  compgen -o
elif [[ "$prev" = -A ]]; then
  compgen -A
fi