Set alias to batcat if needed

This commit is contained in:
Martin Blazik
2022-03-08 13:43:39 +01:00
parent c9e6be90d8
commit bde22ffa10

View File

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