bat: add fallback to cat

This commit is contained in:
Gabriel Augendre 2024-02-20 01:05:21 +01:00
parent 7598762fcc
commit abde7c1708

View file

@ -1,4 +1,7 @@
function cat --wraps=bat --description 'alias cat bat'
bat $argv
if type -q bat
bat $argv
else
command cat $argv
end
end