Watch
1
0
Fork
You've already forked dotfiles
0

Add configuration for bat

This commit is contained in:
Alexander Hess 2026-08-03 02:57:48 +02:00
commit 1272f73dcd
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
4 changed files with 35 additions and 1 deletions

View file

@ -12,7 +12,7 @@ export XDG_DATA_HOME="$HOME/.local/share" # also set in ~/.local/bin/install-do
export XDG_STATE_HOME="$HOME/.local/state"
# Make up a XDG directory for binaries (that does not exist in the standard)
export XDG_BIN_HOME="$HOME/.local/bin"
export XDG_BIN_HOME="$HOME/.local/bin" # also set in ~/.local/bin/install-dotfiles
# Convenient names for various places in the system
@ -28,8 +28,14 @@ export PAGER="less --chop-long-lines --ignore-case --LONG-PROMPT --no-init --sta
export TZ="Europe/Berlin"
export VISUAL=$EDITOR
if command -v bat >/dev/null 2>&1; then
export MANPAGER="sh -c 'col -bx | bat --language man --plain'"
export MANROFFOPT="-c"
fi
# Move common tools' config and cache files into XDG directories
export BAT_CONFIG_PATH="$XDG_CONFIG_HOME/bat/config"
export LESSHISTFILE="$XDG_STATE_HOME/less/history"
export VIMINIT='let $MYVIMRC="'"$XDG_CONFIG_HOME"'/vim/vimrc" | source $MYVIMRC'