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