about summary refs log tree commit diff
path: root/Completion/Base/_condition
blob: 51ac6bf0d3dacb8d8e08484438df398b0f55c935 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#compdef -condition-

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

if [[ "$prev" = -o ]]; then
  _tags -C -o options && _options
elif [[ "$prev" = -([no]t|ef) ]]; then
  _tags -C "$prev" files && _files
else
  _alternative 'files:: _files' 'parameters:: _parameters'
fi