Update .config/fish/conf.d/30-bat.fish
This commit is contained in:
parent
442c0c43b5
commit
599699686d
1 changed files with 7 additions and 3 deletions
|
@ -12,7 +12,11 @@ function cat --wraps bat
|
||||||
{{ $batcmd }} $argv
|
{{ $batcmd }} $argv
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function cath --wraps bat
|
||||||
|
{{ $batcmd }} --plain --language=help $argv
|
||||||
|
end
|
||||||
|
|
||||||
abbr -a B --position anywhere --set-cursor "% | {{ $batcmd }}"
|
abbr -a B --position anywhere --set-cursor "% | {{ $batcmd }}"
|
||||||
abbr -a --position anywhere -- -h "-h 2>&1 | {{ $batcmd }} --plain --language=help"
|
abbr -a --position anywhere -- -h "-h 2>&1 | cath"
|
||||||
abbr -a --position anywhere -- --help "--help 2>&1 | {{ $batcmd }} --plain --language=help"
|
abbr -a --position anywhere -- --help "--help 2>&1 | cath"
|
||||||
abbr -a help --position anywhere -- "help 2>&1 | {{ $batcmd }} --plain --language=help"
|
abbr -a help --position anywhere -- "help 2>&1 | cath"
|
||||||
|
|
Loading…
Reference in a new issue