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

Make completion compatible with MacOS

This commit is contained in:
Devin Buhl 2020-09-03 18:52:36 -04:00 committed by GitHub
parent 6743cdbb65
commit db6fae2f5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
function __task_get_tasks --description "Prints all available tasks with their description"
task -l | sed '1d' | awk '{ $1=""; print $0 }' | sed 's/: /\t/' | string trim
task -l | sed '1d' | awk '{ $1=""; print $0 }' | tr ': ', '\t' | string trim
end
complete -c task -d 'Runs the specified task(s). Falls back to the "default" task if no task name was specified, or lists all tasks if an unknown task name was