fish-shell/share/functions/__fish_print_ninja_targets.fish
2016-10-04 12:32:28 +02:00

5 lines
142 B
Fish

function __fish_print_ninja_targets
if [ -f build.ninja ]
ninja -t targets 2> /dev/null | string replace -r ':.*' ''
end
end