Using bat in man pages

This commit is contained in:
Martin Blazik
2022-03-18 08:02:44 +01:00
parent bde22ffa10
commit 47a048e669

View File

@@ -4,10 +4,11 @@ export EDITOR=vim
# https://docs.microsoft.com/en-us/dotnet/core/tools/telemetry
export DOTNET_CLI_TELEMETRY_OPTOUT=1
if can_run bat && ! is_alias bat; then
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
fi
if ! can_run bat && can_run batcat; then
alias bat=batcat
fi
if can_run bat; then
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
fi