Enhancement - task_completion.sh

- Applied Fredde's patch.
This commit is contained in:
Paul Beckingham 2009-07-12 22:54:02 -04:00
parent 8bf0f1176b
commit 5489cc5a0c

View file

@ -56,6 +56,10 @@ _task_get_tags() {
task _tags task _tags
} }
_task_get_config() {
task _config
}
_task() _task()
{ {
local cur prev opts base local cur prev opts base
@ -83,6 +87,11 @@ _task()
COMPREPLY=( $(compgen -W "${tags}" -- ${cur}) ) COMPREPLY=( $(compgen -W "${tags}" -- ${cur}) )
return 0 return 0
;; ;;
rc.*)
local config=$(_task_get_config | sed 's/^/rc\./')
COMPREPLY=( $(compgen -W "${config}" -- ${cur}) )
return 0
;;
esac esac
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )