Add config for batcat, the nicer cat

This commit is contained in:
Alexander Hess 2022-07-12 02:18:10 +02:00
parent bca227ff27
commit b66256f83a
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
3 changed files with 9 additions and 1 deletions

6
.config/bat/config Normal file
View file

@ -0,0 +1,6 @@
--theme="TwoDark"
--style="numbers,changes,header"
--map-syntax ".flake8:ini"
--map-syntax "poetry.lock:toml"

View file

@ -20,7 +20,7 @@ git clone --bare git@git.webartifex.biz:alexander/dotfiles.git "$HOME/.dotfiles"
# Backup old dotfiles # Backup old dotfiles
rm -rf "$HOME/.dotfiles.bak" >/dev/null rm -rf "$HOME/.dotfiles.bak" >/dev/null
mkdir -p $HOME/.dotfiles.bak/.config/{git,shell} && \ mkdir -p $HOME/.dotfiles.bak/.config/{bat,git,shell} && \
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \ /usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \
xargs -I{} mv {} "$HOME/.dotfiles.bak"/{} xargs -I{} mv {} "$HOME/.dotfiles.bak"/{}

View file

@ -30,6 +30,8 @@ export REPOS="$HOME/repos"
# Configurations for various utilities # Configurations for various utilities
export BAT_CONFIG_PATH="$HOME/.config/bat/config"
export LESSHISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/.lesshst" export LESSHISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/.lesshst"