Fish: Selectively use bat for cat & Select default theme
This commit is contained in:
parent
b6162bfea4
commit
f0e7282ef6
|
@ -1,5 +1,7 @@
|
|||
function cat --wraps=ccat --description 'alias cat=ccat'
|
||||
if command -sq ccat
|
||||
function cat --description 'alias cat to bat, ccat, or cat'
|
||||
if command -sq bat
|
||||
bat --theme Dracula $argv;
|
||||
else if command -sq ccat
|
||||
ccat $argv;
|
||||
else
|
||||
set catpath (which cat)
|
||||
|
|
Loading…
Reference in New Issue