2023-10-26 14:13:12 +00:00
|
|
|
function cat --description 'alias cat to ccat'
|
|
|
|
# if command -sq bat
|
|
|
|
# bat --theme Dracula $argv;
|
|
|
|
# else if command -sq ccat
|
|
|
|
# ccat $argv;
|
|
|
|
if command -sq ccat
|
2022-03-31 09:47:52 +00:00
|
|
|
ccat $argv;
|
|
|
|
else
|
|
|
|
set catpath (which cat)
|
|
|
|
$catpath $argv;
|
|
|
|
end
|
2020-12-25 11:50:50 +00:00
|
|
|
end
|