Add configuration for bat
This commit is contained in:
parent
a26c6e0263
commit
1272f73dcd
4 changed files with 35 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue