dotfiles/.config/fish/functions/cat.fish
2025-08-14 21:11:10 +02:00

7 lines
165 B
Fish

function cat --wraps=bat --description 'alias cat=bat'
if type -f bat &>/dev/null; and [ -t 1 ]
bat $argv
else
command cat $argv
end
end