bash-completion/completions/gkrellm

40 lines
941 B
Plaintext
Raw Permalink Normal View History

# gkrellm(1) completion -*- shell-script -*-
2003-12-30 23:22:37 -08:00
_gkrellm()
{
local cur prev words cword
_init_completion || return
case $prev in
2009-10-19 11:33:09 -07:00
-t|--theme)
2009-10-04 10:42:50 -07:00
_filedir -d
return 0
;;
2009-10-19 11:33:09 -07:00
-p|--plugin)
_filedir so
2009-10-04 10:42:50 -07:00
return 0
;;
2009-10-19 11:33:09 -07:00
-s|--server)
2009-10-04 10:42:50 -07:00
_known_hosts_real "$cur"
return 0
;;
2009-10-19 11:33:09 -07: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 11:39:55 -07:00
-h|--help|-v|--version)
# All other options are noop with these
return 0
;;
2009-10-04 10:42:50 -07:00
esac
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
2009-06-08 11:22:43 -07:00
} &&
complete -F _gkrellm gkrellm gkrellm2
2009-10-04 10:42:50 -07:00
# ex: ts=4 sw=4 et filetype=sh