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

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

if [[ "$prev" = -o ]]; then
  compgen -o -M 'L:|[nN][oO]= M:_= M:{A-Z}={a-z}'
elif [[ "$prev" = -([no]t|ef) ]]; then
  _files
else
  _files
  compgen -v
fi