blob: 9788dec5a06b2107b72bcf4fa68457fc7cf2d754 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# look(1) completion -*- shell-script -*-
# Use of this file is deprecated on Linux. Upstream completion is
# available in util-linux >= 2.23, use that instead.
_look()
{
local cur prev words cword
_init_completion || return
if ((cword == 1)); then
COMPREPLY=($(compgen -W '$(look "$cur" 2>/dev/null)' -- "$cur"))
fi
} &&
complete -F _look -o default look
# ex: filetype=sh
|