about summary refs log tree commit diff
path: root/Completion/User/_look
blob: 14d6285b6858fd4c5d19fa2ad69a68298f42e4ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#compdef look

local context state line
typeset -A opt_args

_arguments -s \
  '-t+[termination character]:termination character:' \
  '-f[case insensitive]' \
  '-d[dictionary order]' \
  ':string:->string'

case "$state" in
string)
  if [[ -n "$PREFIX" ]]; then
    compadd - $(_call values $words[1] $PREFIX)
  fi
  ;;
esac