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_get_config() {
task _config
}
_task()
{
local cur prev opts base
@ -83,6 +87,11 @@ _task()
COMPREPLY=( $(compgen -W "${tags}" -- ${cur}) )
return 0
;;
rc.*)
local config=$(_task_get_config | sed 's/^/rc\./')
COMPREPLY=( $(compgen -W "${config}" -- ${cur}) )
return 0
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )