about summary refs log tree commit diff
path: root/Functions/Completion/__condition
blob: 8ceb969b8620c19a11364dc32e5e1f4932454e9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#function --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