mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
Select the 4th line of output, instead of the second to last line
This commit is contained in:
parent
616fa85458
commit
2de914d8c3
@ -8,8 +8,8 @@
|
|||||||
# https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
|
# https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
|
||||||
|
|
||||||
function __grunt_print_tasks
|
function __grunt_print_tasks
|
||||||
set -l info (grunt --version --verbose ^/dev/null | tail -n2 | head -n1)
|
set -l info (grunt --version --verbose ^/dev/null)
|
||||||
set -l tasks (echo $info | sed -e 's/Available tasks: //' | tr ' ' '\n')
|
set -l tasks (echo $info[4] | sed -e 's/Available tasks: //' | tr ' ' '\n')
|
||||||
for t in $tasks
|
for t in $tasks
|
||||||
echo $t
|
echo $t
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user