Skip to content

Commit 638e997

Browse files
committed
fix: prevent bat output colors when piped
1 parent ea002ac commit 638e997

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Configs/.config/fish/config.fish

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ if type -q eza
4848
end
4949

5050
if type -q bat
51-
abbr -a --position anywhere -- --help '--help | bat --language=help --style=plain --paging=never'
52-
abbr -a --position anywhere -- -h '-h | bat --language=help --style=plain --paging=never'
53-
abbr cat 'bat --style=plain --paging=never'
51+
abbr -a --position anywhere -- --help '--help | bat --language=help --style=plain --paging=never --color always'
52+
abbr -a --position anywhere -- -h '-h | bat --language=help --style=plain --paging=never --color always'
53+
abbr cat 'bat --style=plain --paging=never --color auto'
5454
end
5555

5656
# Directory navigation shortcuts

0 commit comments

Comments
 (0)