1
0
mirror of https://github.com/go-task/task.git synced 2025-03-17 21:08:01 +02:00

Fix the zsh completion with sub-tasks

This commit is contained in:
Guillaume AMAT 2019-03-02 01:40:31 +01:00
parent 9dbb503c23
commit e79026b840

2
completion/zsh/_task Normal file → Executable file
View File

@ -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/^* //' | sed 's/\:\s.*//' | sed 's/\(\w\):\(\w\)/\1\\\:\2/'))
_describe 'script' scripts
fi
}