function cat
if test (count $argv) -eq 1
set file $argv[1]
if test -f "$file"
if string match -rq '\.md$' -- "$file"
command glow "$file"
else
command bat --paging=never "$file"
end
return
command bat $argv