2009-01-14 22:17:14 +02:00
|
|
|
# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
|
2009-01-17 11:38:33 +02:00
|
|
|
# ex: ts=8 sw=8 noet filetype=sh
|
2009-01-14 22:17:14 +02:00
|
|
|
#
|
2005-01-03 02:00:44 +00:00
|
|
|
# snownews completion by Guillaume Rousse <rousse@ccr.jussieu.fr>
|
2004-01-01 00:00:50 +00:00
|
|
|
|
2009-06-08 21:22:43 +03:00
|
|
|
have snownews &&
|
2005-01-03 02:00:44 +00:00
|
|
|
_snownews()
|
|
|
|
{
|
|
|
|
local cur
|
|
|
|
|
|
|
|
COMPREPLY=()
|
2008-05-10 18:04:06 +02:00
|
|
|
cur=`_get_cword`
|
2005-01-03 02:00:44 +00:00
|
|
|
|
|
|
|
if [[ "$cur" == -* ]]; then
|
|
|
|
# return list of available options
|
|
|
|
COMPREPLY=( $( compgen -W '--update --help --version \
|
|
|
|
--disable-versioncheck -u -h -V' -- $cur))
|
|
|
|
fi
|
2009-06-08 21:22:43 +03:00
|
|
|
} &&
|
2005-01-03 02:00:44 +00:00
|
|
|
complete -F _snownews snownews
|