bin: add .sh to scripts that aren't meant to be used as bins

This commit is contained in:
Oleksandr Smirnov 2025-09-22 12:30:07 +03:00
parent 0d4e9941a2
commit ec4d3c6e89
No known key found for this signature in database
3 changed files with 0 additions and 0 deletions

12
bin/bat-install-theme.sh Executable file
View 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