mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Enhancement:
* Remove trailing whitespace from completions. * Complete rc.<variable> with ":'.
This commit is contained in:
parent
ede746ba16
commit
e5d56e3075
1 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@ _task()
|
|||
return 0
|
||||
;;
|
||||
rc.*)
|
||||
local config=$(_task_get_config | sed 's/^/rc\./')
|
||||
local config=$(_task_get_config | sed -e 's/^/rc\./' -e 's/$/:/')
|
||||
COMPREPLY=( $(compgen -W "${config}" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
|
@ -124,4 +124,4 @@ _task()
|
|||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
}
|
||||
complete -F _task task
|
||||
complete -o nospace -F _task task
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue