summaryrefslogtreecommitdiff
path: root/completions/cancel
blob: 2722d2a80d9e65ae123a08ba6850a9137133e9cf (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: filetype=sh