fish(alias cat): Don't use bat in place of cat

This commit is contained in:
hedy 2023-10-26 22:13:12 +08:00
parent ea99a75351
commit 7a6ad04f90
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
1 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,9 @@
function cat --description 'alias cat to bat, ccat, or cat'
if command -sq bat
bat --theme Dracula $argv;
else if command -sq ccat
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
ccat $argv;
else
set catpath (which cat)