2005-05-25 01:58:08 -07:00
|
|
|
# $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]}
|
2005-09-21 09:47:02 -07:00
|
|
|
opts=`enlightenment_remote -h | awk '{print $1}' | grep -v "OPTIONS:" | xargs`
|
2005-05-25 01:58:08 -07:00
|
|
|
|
|
|
|
if [[ "${cur}" == -* ]] || [[ ${COMP_CWORD} -eq 1 ]]; then
|
|
|
|
COMPREPLY=($(compgen -W "${opts}" -- "${cur}"))
|
|
|
|
fi
|
|
|
|
|
|
|
|
case "${prev}" in
|
2005-08-14 21:32:49 -07:00
|
|
|
-h|-help|--help)
|
|
|
|
COMPREPLY=($(compgen -W "${opts/-h -help --help}" -- "${cur}"))
|
2005-05-25 01:58:08 -07:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
complete -F _enlightenment_remote enlightenment_remote
|
2005-09-21 09:47:02 -07:00
|
|
|
|