1
0
mirror of https://github.com/go-task/task.git synced 2025-08-08 22:36:57 +02:00

fish: fix completions for tasks with aliases (#1113)

This commit is contained in:
Patrick Jackson
2023-04-15 12:51:44 -07:00
committed by GitHub
parent 6995cd71d9
commit 606a8f9db5

View File

@@ -10,7 +10,7 @@ function __task_get_tasks --description "Prints all available tasks with their d
end
# Grab names and descriptions (if any) of the tasks
set -l output (echo $rawOutput | sed '1d; s/\* \(.*\):\s*\(.*\)/\1\t\2/' | string split0)
set -l output (echo $rawOutput | sed -e '1d; s/\* \(.*\):\s*\(.*\)\s*(aliases.*/\1\t\2/' -e 's/\* \(.*\):\s*\(.*\)/\1\t\2/'| string split0)
if test $output
echo $output
end