From 85fc395d25350ec987573cc486b4899829187028 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Fri, 20 Sep 2024 19:44:48 -0700 Subject: [PATCH] Improve bat config --- dot_config/profile/env.d/base.env.tmpl | 4 ++-- dot_config/profile/profile.d/alias.sh.tmpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dot_config/profile/env.d/base.env.tmpl b/dot_config/profile/env.d/base.env.tmpl index 8142db5..39d8fa0 100644 --- a/dot_config/profile/env.d/base.env.tmpl +++ b/dot_config/profile/env.d/base.env.tmpl @@ -16,10 +16,10 @@ EDITOR=vim #{{- end }}# #{{ if lookPath "bat" -}}# -BAT_PAGER=never +BAT_PAGER="less --raw-control-chars --quit-if-one-screen --no-init" BAT_STYLE=plain BAT_THEME=zenburn -MANPAGER="sh -c 'col -bx | bat -l man -p'" +MANPAGER="sh -c 'col -bx | bat --language man --plain'" #{{ end -}}# #{{ if eq .chezmoi.os "darwin" -}}# diff --git a/dot_config/profile/profile.d/alias.sh.tmpl b/dot_config/profile/profile.d/alias.sh.tmpl index 116b623..8058ff6 100644 --- a/dot_config/profile/profile.d/alias.sh.tmpl +++ b/dot_config/profile/profile.d/alias.sh.tmpl @@ -30,5 +30,5 @@ alias egrep='egrep --color=auto' #{{ if lookPath "bat" -}} alias batdiff='batdiff --pager=""' -alias cat=bat +alias cat='bat --paging=never' #{{- end }}