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

11 lines
224 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
bat $argv
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"