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

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