dotfiles/.config/fish/functions/cat.fish
2025-12-17 13:13:48 +01: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