2009-06-08 16:55:03 +02:00

17 lines
317 B
Bash

# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
# ex: ts=8 sw=8 noet filetype=sh
#
# bash completion for cups
have cancel &&
_cancel()
{
local cur
COMPREPLY=()
cur=`_get_cword`
COMPREPLY=( $( compgen -W "$( lpstat | cut -d' ' -f1 )" -- $cur ) )
} &&
complete -F _cancel $filenames cancel