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