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

This commit is contained in:
punkfairie 2024-04-27 18:45:43 -07:00
parent 442c0c43b5
commit 599699686d
Signed by: punkfairie
GPG key ID: A86AF57F837E320F

View file

@ -12,7 +12,11 @@ function cat --wraps bat
{{ $batcmd }} $argv
end
function cath --wraps bat
{{ $batcmd }} --plain --language=help $argv
end
abbr -a B --position anywhere --set-cursor "% | {{ $batcmd }}"
abbr -a --position anywhere -- -h "-h 2>&1 | {{ $batcmd }} --plain --language=help"
abbr -a --position anywhere -- --help "--help 2>&1 | {{ $batcmd }} --plain --language=help"
abbr -a help --position anywhere -- "help 2>&1 | {{ $batcmd }} --plain --language=help"
abbr -a --position anywhere -- -h "-h 2>&1 | cath"
abbr -a --position anywhere -- --help "--help 2>&1 | cath"
abbr -a help --position anywhere -- "help 2>&1 | cath"