mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
bin: add .sh to scripts that aren't meant to be used as bins
This commit is contained in:
parent
0d4e9941a2
commit
ec4d3c6e89
3 changed files with 0 additions and 0 deletions
12
bin/bat-install-theme.sh
Executable file
12
bin/bat-install-theme.sh
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