From 7a6ad04f90d64fa2b3cc220bf540560a71411992 Mon Sep 17 00:00:00 2001 From: hedy Date: Thu, 26 Oct 2023 22:13:12 +0800 Subject: [PATCH] fish(alias cat): Don't use bat in place of cat --- .config/fish/functions/cat.fish | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.config/fish/functions/cat.fish b/.config/fish/functions/cat.fish index 41a0453..c4462bd 100644 --- a/.config/fish/functions/cat.fish +++ b/.config/fish/functions/cat.fish @@ -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)