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