bash-completion/completions/freeciv-gtk2

31 lines
721 B
Plaintext
Raw Permalink Normal View History

# freeciv client completions -*- shell-script -*-
_civclient()
{
local cur prev words cword
_init_completion || return
case $prev in
-l|-S|-t|--log|--Sound|--tiles)
2009-10-04 10:42:50 -07:00
_filedir
return 0
;;
-P|--Plugin)
2009-10-04 10:42:50 -07:00
COMPREPLY=( $( compgen -W 'none esd sdl' -- "$cur" ) )
return 0
;;
-s|--server)
2009-10-04 10:42:50 -07:00
_known_hosts_real "$cur"
return 0
;;
esac
2009-10-04 10:42:50 -07:00
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
2009-10-04 10:42:50 -07:00
fi
2009-06-08 11:22:43 -07:00
} &&
complete -F _civclient civclient freeciv-gtk2 freeciv-sdl freeciv-xaw
2009-10-04 10:42:50 -07:00
# ex: ts=4 sw=4 et filetype=sh