From 8f1202424d981547374e9f2eb88c10763f96197d Mon Sep 17 00:00:00 2001 From: Nate Meyer Date: Wed, 1 Sep 2021 08:33:08 -0700 Subject: [PATCH 1/2] properly format each line --- completion/fish/task.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completion/fish/task.fish b/completion/fish/task.fish index 147d4985..a06108a0 100644 --- a/completion/fish/task.fish +++ b/completion/fish/task.fish @@ -1,5 +1,5 @@ function __task_get_tasks --description "Prints all available tasks with their description" - task -l | sed '1d' | awk '{ $1=""; print $0 }' | tr ': ', '\t' | string trim + task -l | 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 From d3694513083147880a2d84d85cd1d2e793ca4d51 Mon Sep 17 00:00:00 2001 From: Nate Meyer Date: Wed, 1 Sep 2021 08:54:48 -0700 Subject: [PATCH 2/2] keep the sed, we do want to skip the first line --- completion/fish/task.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completion/fish/task.fish b/completion/fish/task.fish index a06108a0..92a7478e 100644 --- a/completion/fish/task.fish +++ b/completion/fish/task.fish @@ -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