mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 00:40:44 +02:00
bin: add script for installing bat theme
This commit is contained in:
parent
1d343192ac
commit
6ef6c4e8ea
1 changed files with 12 additions and 0 deletions
12
bin/bat-install-theme
Executable file
12
bin/bat-install-theme
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
tmDir="$(bat --config-dir)/themes"
|
||||
|
||||
mkdir -p "$tmDir"
|
||||
curl -O https://raw.githubusercontent.com/folke/tokyonight.nvim/main/extras/sublime/tokyonight_night.tmTheme -o "$tmDir"/tokyonight_night.tmTheme
|
||||
bat cache --build
|
||||
|
||||
read -p $'\e[32mDo you want to set the theme to tokyonight_night?\e[0m [y/N]:' -n 1 -r
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||
echo '--theme="tokyonight_night"' >> "$(bat --config-dir)/config"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue