dotfiles/.config/fish/functions/batfun.fish

8 lines
192 B
Fish

function batfun -d "Display function definition with bat"
if type -q bat
command bat (functions -D $argv[1])
else
command echo "bat program not installed!"
end
end