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

This commit is contained in:
punkfairie 2024-04-21 14:08:49 -07:00
parent de91bed26f
commit 995b03ffbe
No known key found for this signature in database
GPG key ID: 1B492EAEA989C054

View file

@ -3,7 +3,11 @@
set -gx BATDIFF_USE_DELTA true
function cat --wraps bat
bat $argv
if command -v bat &>/dev/null
bat $argv
else if command -v batcat &>/dev/null
batcat $argv
end
end
abbr -a B --position anywhere --set-cursor "% | bat"