blob: df9144526143a8a988c0279e03f08975345ada37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# look(1) completion -*- shell-script -*-
_look()
{
local cur prev words cword
_init_completion || return
if [[ $cword -eq 1 ]]; then
COMPREPLY=( $( compgen -W '$(look "$cur" 2>/dev/null)' -- "$cur" ) )
fi
} &&
complete -F _look -o default look
# ex: ts=4 sw=4 et filetype=sh
|