Update .config/fish/conf.d/30-bat.fish
This commit is contained in:
parent
de91bed26f
commit
995b03ffbe
1 changed files with 5 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue