Update .config/fish/conf.d/30-bat.fish

This commit is contained in:
punkfairie 2024-04-21 14:32:58 -07:00
parent 401293bb1d
commit bf55ef2a1a
No known key found for this signature in database
GPG key ID: 1B492EAEA989C054

View file

@ -1,14 +1,19 @@
#!/usr/bin/env fish
set -gx BATDIFF_USE_DELTA true
set -g batcmd
if command -v bat &>/dev/null
set batcmd bat
else if command -v batcat &>/dev/null
set batcmd batcat
end
function cat --wraps bat
if command -v bat &>/dev/null
set -g batcmd bat
bat $argv
else if command -v batcat &>/dev/null
set -g batcmd batcat
batcat $argv
end
end