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:
parent
9dbb503c23
commit
e79026b840
2
completion/zsh/_task
Normal file → Executable file
2
completion/zsh/_task
Normal file → Executable 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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user