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

if [[ -current -1 -o ]]; then
  complist -o -M 'L:|[nN][oO]= M:_= M:{A-Z}={a-z}'
elif [[ -current -1 -nt || -current -1 -ot || -current -1 -ef ]]; then
  _files
else
  _files
  complist -v
fi