1 2 3 4 5 6 7 8
function cat -d "Print a file nicely" if isatty stdout bat $argv else set -l catBin $(type --no-functions --path cat) $catBin $argv end end