Enhancement - task_completion.sh
- Applied Fredde's patch.
This commit is contained in:
@@ -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}) )
|
||||||
|
|||||||
Reference in New Issue
Block a user