diff --git a/completion/zsh/_task b/completion/zsh/_task old mode 100644 new mode 100755 index 438465ce..7e6b028e --- a/completion/zsh/_task +++ b/completion/zsh/_task @@ -5,7 +5,7 @@ function __list() { local -a scripts if [ -f Taskfile.yml ]; then - scripts=($(task -l | sed '1d' | sed 's/://' | awk '{ print $2 }')) + scripts=($(task -l | sed '1d' | sed 's/^\* //' | awk '{ print $1 }' | sed 's/:$//' | sed 's/:/\\:/')) _describe 'script' scripts fi } @@ -23,3 +23,4 @@ _arguments \ '(-w --watch)'{-w,--watch} \ '(- *)'{-h,--help} \ '*: :__list' \ +