about summary refs log tree commit diff
path: root/Functions/Completion/_hash
blob: a6109563debbb102251a9cb809a2f46edb2c7e34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#defcomp hash

if [[ -mword 1 -*d* ]]; then
  if [[ -string 1 '=' ]]; then
    _path_files -g '*(-/)'
  else
    complist -n -q -S '='
  fi
elif [[ -string 1 '=' ]]; then
  _files -g '*(*)' '*(-/)'
else
  complist -m -q -S '='
fi