2011-04-20 14:42:30 +03:00

21 lines
379 B
Bash

# bash completion for cups
have cancel || return
_cancel()
{
local cur prev words cword
_init_completion || return
COMPREPLY=( $( compgen -W "$( lpstat | cut -d' ' -f1 )" -- "$cur" ) )
} &&
complete -F _cancel cancel
# Local variables:
# mode: shell-script
# sh-basic-offset: 4
# sh-indent-comment: t
# indent-tabs-mode: nil
# End:
# ex: ts=4 sw=4 et filetype=sh