mirror of
https://github.com/go-task/task.git
synced 2025-01-12 04:34:11 +02:00
Merge pull request #803 from carlsmedstad/zsh-completion
Fix Zsh completion for tasks without description
This commit is contained in:
commit
110d1d7245
@ -27,7 +27,7 @@ function __task_list() {
|
||||
(( enabled )) || return 0
|
||||
|
||||
scripts=()
|
||||
for item in "${(@)${(f)$("${cmd[@]}" --list)}[2,-1]#\* }"; do
|
||||
for item in "${(@)${(f)$("${cmd[@]}" --list-all)}[2,-1]#\* }"; do
|
||||
task="${item%%:[[:space:]]*}"
|
||||
desc="${item##[^[:space:]]##[[:space:]]##}"
|
||||
scripts+=( "${task//:/\\:}:$desc" )
|
||||
|
Loading…
Reference in New Issue
Block a user