summaryrefslogtreecommitdiff
path: root/completions/cancel
blob: 3e9a3781c762f64044f839e2bc38f0bd7cd5700d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# cancel(1) completion                                     -*- shell-script -*-

_cancel()
{
    local cur prev words cword
    _init_completion || return

    COMPREPLY=( $( compgen -W "$( lpstat 2>/dev/null | cut -d' ' -f1 )" -- "$cur" ) )
} &&
complete -F _cancel cancel

# ex: ts=4 sw=4 et filetype=sh