fish-shell/share/functions/__fish_print_ninja_tools.fish

7 lines
169 B
Fish
Raw Normal View History

2016-09-28 06:17:24 +08:00
function __fish_print_ninja_tools
echo list
if [ -f build.ninja ]
ninja -t list | string match -v '*:' | string replace -r '\s+(\w+).*' '$1'
end
end