Настройка bat

This commit is contained in:
2025-10-11 12:25:09 +03:00
parent 5bbd73427b
commit 3aca637935
2 changed files with 8 additions and 5 deletions

View File

@@ -55,10 +55,5 @@ if [[ -n ${DISPLAY+set} ]]; then
fi fi
# }}} # }}}
if command -v bat >/dev/null; then
export PAGER=bat
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
fi
[ -r "$ZDOTDIR/.zshenv.user" ] && source "$ZDOTDIR/.zshenv.user" [ -r "$ZDOTDIR/.zshenv.user" ] && source "$ZDOTDIR/.zshenv.user"

8
apps.d/bat.zsh Normal file
View File

@@ -0,0 +1,8 @@
# shellcheck shell=bash
# vim: ft=sh
if command -v bat >/dev/null; then
export PAGER=bat
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
fi