# bash completion for CreoleGet # Christophe DEZE Académie DE Nantes # have CreoleGet && _CreoleGet() { local cur COMPREPLY=() _get_comp_words_by_ref cur command=${COMP_WORDS[COMP_CWORD]} if [ $COMP_CWORD -eq 1 ]; then COMPREPLY=($(CreoleGet --list |cut -d'=' -f1| grep "^$cur")); fi } && complete -F _CreoleGet CreoleGet # Local variables: # mode: shell-script # sh-basic-offset: 4 # sh-indent-comment: t # indent-tabs-mode: nil # End: # ex: ts=4 sw=4 et filetype=sh