From 141e1b6cdd8a8de7953e4892978074a6252d38cd Mon Sep 17 00:00:00 2001 From: xenith Date: Wed, 25 May 2005 08:58:08 +0000 Subject: [PATCH] bash completion script for enlightenment_remote! Doesn't do much now but complete the commands on tab. Eventually it should also complete the options for each command. SVN revision: 14935 --- data/other/enlightenment_remote | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 data/other/enlightenment_remote diff --git a/data/other/enlightenment_remote b/data/other/enlightenment_remote new file mode 100644 index 000000000..f78ad1a73 --- /dev/null +++ b/data/other/enlightenment_remote @@ -0,0 +1,30 @@ +# $Id$ +# bash-completion script for enlightenment_remote +# By Justin Rocha (Xenith) + +_enlightenment_remote() { + local cur prev opts + COMPREPLY=() + cur=${COMP_WORDS[COMP_CWORD]} + prev=${COMP_WORDS[COMP_CWORD-1]} + opts="-h --help -module-load -module-unload -module-enable -module-disable \ + -module-list -module-dirs-list -bg-set -bg-get -bg-dirs-list \ + -font-fallback-remove -font-fallback-prepend -font-fallback-append \ + -font-apply -font-fallback-list -font-available-list -font-fallback-clear \ + -font-default-get -font-default-remove -font-default-list -font-default-set \ + -font-default-remove -font-default-list -font-default-set -restart \ + -shutdown -lang-get -lang-list -lang-set -binding-mouse-list \ + -binding-mouse-add -binding-mouse-del -binding-key-list \ + -binding-key-add -binding-key-del" + + if [[ "${cur}" == -* ]] || [[ ${COMP_CWORD} -eq 1 ]]; then + COMPREPLY=($(compgen -W "${opts}" -- "${cur}")) + fi + + case "${prev}" in + -h|--help) + COMPREPLY=($(compgen -W "${opts/-h --help}" -- "${cur}")) + ;; + esac +} +complete -F _enlightenment_remote enlightenment_remote