mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-11-24 15:38:06 +01:00
bat: add fallback to cat
This commit is contained in:
parent
7598762fcc
commit
abde7c1708
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue