1
0
mirror of https://github.com/go-task/task.git synced 2025-06-23 00:38:19 +02:00

fix(completion): display aliases in fish completion (#1782)

This commit is contained in:
Valentin Maerten
2024-09-02 22:06:01 +02:00
committed by GitHub
parent 21cd573770
commit eb39dd94d0

View File

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