31 lines
721 B
Plaintext
Raw 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 19:42:50 +02:00
_filedir
return 0
;;
-P|--Plugin)
2009-10-04 19:42:50 +02:00
COMPREPLY=( $( compgen -W 'none esd sdl' -- "$cur" ) )
return 0
;;
-s|--server)
2009-10-04 19:42:50 +02:00
_known_hosts_real "$cur"
return 0
;;
esac
2009-10-04 19:42:50 +02:00
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
2009-10-04 19:42:50 +02:00
fi
2009-06-08 21:22:43 +03:00
} &&
complete -F _civclient civclient freeciv-gtk2 freeciv-sdl freeciv-xaw
2009-10-04 19:42:50 +02:00
# ex: ts=4 sw=4 et filetype=sh