2009-06-08 21:22:43 +03:00

21 lines
460 B
Bash

# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
# ex: ts=8 sw=8 noet filetype=sh
#
# snownews completion by Guillaume Rousse <rousse@ccr.jussieu.fr>
have snownews &&
_snownews()
{
local cur
COMPREPLY=()
cur=`_get_cword`
if [[ "$cur" == -* ]]; then
# return list of available options
COMPREPLY=( $( compgen -W '--update --help --version \
--disable-versioncheck -u -h -V' -- $cur))
fi
} &&
complete -F _snownews snownews