dotfiles/dot_config/fish/conf.d/30-bat.fish

15 lines
333 B
Fish
Raw Normal View History

2024-04-14 18:41:15 -07:00
#!/usr/bin/env fish
set -gx BATDIFF_USE_DELTA true
function cat --wraps bat
2024-04-21 14:08:49 -07:00
if command -v bat &>/dev/null
bat $argv
else if command -v batcat &>/dev/null
batcat $argv
end
2024-04-14 18:41:15 -07:00
end
2024-04-18 18:40:30 -07:00
abbr -a B --position anywhere --set-cursor "% | bat"
2024-04-20 10:43:31 -07:00
abbr -a --position anywhere -- -h "-h 2>&1 | bat --plain --language=help"