Compare commits

...

2 Commits

4 changed files with 24 additions and 3 deletions

12
conf/bat.conf Normal file
View File

@ -0,0 +1,12 @@
# $(bat --config-file)
# Enable this to use italic text on the terminal.
--italic-text=always
# Uncomment the following line if you are using less version >= 551 and want to
# enable mouse scrolling support in `bat` when running inside tmux. This might
# disable text selection, unless you press shift.
--pager="less --RAW-CONTROL-CHARS --quit-if-one-screen --mouse"
# Syntax mappings: map a certain filename pattern to a language.
# Use ".gitignore"-style highlighting for ".*ignore" files
--map-syntax ".*ignore:Git Ignore"

11
install
View File

@ -37,7 +37,7 @@ cp -v rc/zshrc $HOME/.zshrc
cp -v rc/profile $HOME/.profile
# Create configuration directories missed later
mkdir -vp $HOME/.config/{autostart,foot,git,MangoHud,mpv,nvim,systemd/user,yt-dlp}/
mkdir -vp $HOME/.config/{autostart,bat,foot,git,MangoHud,mpv,nvim,systemd/user,yt-dlp}/
# terminfo just in case it needs to be copied to remote system
mkdir -vp $HOME/.terminfo/{A..z}
@ -67,6 +67,15 @@ if [ ! -f $HOME/.config/foot/foot.ini ]; then
cp -v conf/foot/foot.ini $HOME/.config/foot/foot.ini
fi
# A cat(1) clone with wings.
if hash bat 2> /dev/null; then
mkdir -vp $(bat --config-dir)
if [ ! -f $(bat --config-file) ]; then
bat --generate-config-file
cat conf/bat.conf >> $(bat --config-file)
fi
fi
# the media player
cp -v conf/mpv.conf $HOME/.config/mpv/mpv.conf
mkdir -vp $HOME/.var/app/io.mpv.Mpv/config/mpv

View File

@ -171,7 +171,7 @@ if hash lsb_release 2> /dev/null; then
# Confusion between bat and batcula is not a concern at this
# point.
if hash bat 2> /dev/null; then
bat --force-colorization --italic-text=always --style=plain $HOME/.shell-things/.mikaela/motivational-message.md | \grep -v '#' | uniq -u
bat --force-colorization --style=plain $HOME/.shell-things/.mikaela/motivational-message.md | \grep -v '#' | uniq -u
else
tail -n +1 $HOME/.shell-things/.mikaela/motivational-message.md | grep -v '#' | uniq -u
fi

View File

@ -67,7 +67,7 @@ if hash lsb_release 2> /dev/null; then
# Confusion between bat and batcula is not a concern at this
# point.
if hash bat 2> /dev/null; then
bat --force-colorization --italic-text=always --style=plain $HOME/.shell-things/.mikaela/motivational-message.md | \grep -v '#' | uniq -u
bat --force-colorization --style=plain $HOME/.shell-things/.mikaela/motivational-message.md | \grep -v '#' | uniq -u
else
tail -n +1 $HOME/.shell-things/.mikaela/motivational-message.md | grep -v '#' | uniq -u
fi