mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-11-24 23:48:09 +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'
|
function cat --wraps=bat --description 'alias cat bat'
|
||||||
|
if type -q bat
|
||||||
bat $argv
|
bat $argv
|
||||||
|
else
|
||||||
|
command cat $argv
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue