1 files changed,
12 insertions(+),
0 deletions(-)
Author:
Smirnov Oleksandr
ss2316544@gmail.com
Committed at:
2024-06-24 13:14:59 +0300
Parent:
1d34319
A
bin/bat-install-theme
@@ -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