From 2de914d8c304a1c6af949f1a3caae4647862d591 Mon Sep 17 00:00:00 2001 From: Michishige Kaito Date: Wed, 16 Jul 2014 18:22:27 +0100 Subject: [PATCH] Select the 4th line of output, instead of the second to last line --- share/completions/grunt.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completions/grunt.fish b/share/completions/grunt.fish index 7f28eb3aa..145801ff1 100644 --- a/share/completions/grunt.fish +++ b/share/completions/grunt.fish @@ -8,8 +8,8 @@ # https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT function __grunt_print_tasks - set -l info (grunt --version --verbose ^/dev/null | tail -n2 | head -n1) - set -l tasks (echo $info | sed -e 's/Available tasks: //' | tr ' ' '\n') + set -l info (grunt --version --verbose ^/dev/null) + set -l tasks (echo $info[4] | sed -e 's/Available tasks: //' | tr ' ' '\n') for t in $tasks echo $t end