1
0
mirror of https://github.com/go-task/task.git synced 2024-12-12 10:45:49 +02:00

keep the sed, we do want to skip the first line

This commit is contained in:
Nate Meyer 2021-09-01 08:54:48 -07:00
parent 8f1202424d
commit d369451308

View File

@ -1,5 +1,5 @@
function __task_get_tasks --description "Prints all available tasks with their description"
task -l | awk '{ $1=""; print $0 }' | sed 's/:\ /\t/g' | string trim
task -l | sed '1d' | awk '{ $1=""; print $0 }' | sed 's/:\ /\t/g' | 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