20 lines
440 B
Bash
20 lines
440 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>
|
|
|
|
_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
|