Update .config/fish/conf.d/30-bat.fish
This commit is contained in:
parent
4cb4bb57cc
commit
401293bb1d
1 changed files with 2 additions and 2 deletions
|
@ -5,10 +5,10 @@ set -g batcmd
|
|||
|
||||
function cat --wraps bat
|
||||
if command -v bat &>/dev/null
|
||||
set batcmd bat
|
||||
set -g batcmd bat
|
||||
bat $argv
|
||||
else if command -v batcat &>/dev/null
|
||||
set batcmd batcat
|
||||
set -g batcmd batcat
|
||||
batcat $argv
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue