2011-11-01 22:14:45 +02:00
|
|
|
# gkrellm(1) completion -*- shell-script -*-
|
2003-12-31 07:22:37 +00:00
|
|
|
|
2003-08-04 03:18:31 +00:00
|
|
|
_gkrellm()
|
|
|
|
{
|
2011-04-20 17:02:27 +03:00
|
|
|
local cur prev words cword
|
|
|
|
_init_completion || return
|
2003-08-04 03:18:31 +00:00
|
|
|
|
2009-12-30 00:39:59 +01:00
|
|
|
case $prev in
|
2009-10-19 21:33:09 +03:00
|
|
|
-t|--theme)
|
2009-10-04 19:42:50 +02:00
|
|
|
_filedir -d
|
|
|
|
return 0
|
|
|
|
;;
|
2009-10-19 21:33:09 +03:00
|
|
|
-p|--plugin)
|
|
|
|
_filedir so
|
2009-10-04 19:42:50 +02:00
|
|
|
return 0
|
|
|
|
;;
|
2009-10-19 21:33:09 +03:00
|
|
|
-s|--server)
|
2009-10-04 19:42:50 +02:00
|
|
|
_known_hosts_real "$cur"
|
|
|
|
return 0
|
|
|
|
;;
|
2009-10-19 21:33:09 +03:00
|
|
|
-l|--logfile)
|
|
|
|
_filedir
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
-g|--geometry|-c|--config|-P|--port|-d|--debug-level)
|
|
|
|
# Argument required but no completions available
|
|
|
|
return 0
|
|
|
|
;;
|
2009-10-19 21:39:55 +03:00
|
|
|
-h|--help|-v|--version)
|
|
|
|
# All other options are noop with these
|
|
|
|
return 0
|
|
|
|
;;
|
2009-10-04 19:42:50 +02:00
|
|
|
esac
|
2003-08-04 03:18:31 +00:00
|
|
|
|
2013-02-02 21:01:18 +02:00
|
|
|
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
2009-06-08 21:22:43 +03:00
|
|
|
} &&
|
2010-11-01 19:26:53 +02:00
|
|
|
complete -F _gkrellm gkrellm gkrellm2
|
2009-10-01 20:54:51 +03:00
|
|
|
|
2009-10-04 19:42:50 +02:00
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|