1
# Completions for tools included in util-linux (not necessarily Linux specific)
8
local command cur curopt i
11
_get_comp_words_by_ref cur
15
# walk back through command line and find last option
16
while [[ $i -le $COMP_CWORD && ${#COMPREPLY[@]} -eq 0 ]]; do
17
curopt=${COMP_WORDS[COMP_CWORD-$i]}
32
complete -F _renice renice
42
_get_comp_words_by_ref cur
44
if [[ $COMP_CWORD -eq 1 && "$cur" == -* ]]; then
45
# return list of available signals
48
# return list of available PIDs
52
complete -F _kill kill
62
_get_comp_words_by_ref cur
64
if [ $COMP_CWORD = 1 ]; then
65
COMPREPLY=( $( compgen -W '$(look "$cur" 2>/dev/null)' -- "$cur" ) )
68
complete -F _look -o default look
73
# sh-indent-comment: t
74
# indent-tabs-mode: nil
76
# ex: ts=4 sw=4 et filetype=sh