Skip to content

0xTadash1/bat-into-tokyonight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ¦‡ Bat into Tokyo Night πŸŒƒ

Install / Update Tokyo Night syntax highlight theme for bat.

bat supports Sublime Text theme and syntax highlighting definition files. So we can use *.tmTheme files in extras/sublime/ directory at folke/tokyonight.nvim repository. This is delightful for some, like me!

β„Ή About

Here is the script that adds Folke's edition of Tokyo Night theme to bat. It automates the tedious install (git clone), update (git pull) and build (bat cache --build) process.

The installation is not a simple clone. In here, there are only a few files in folke/tokyonight.nvim that are actually needed for us. The majority of files should be ignored and not saved. For instance, README.md, lua/, colors/, etc.
Similarly, for updates, superfluous files should not be checked.

And the build is executed only when there are updates.

✨ Features

  • Install if not installed
    • tokyonight_day
    • tokyonight_moon
    • tokyonight_night
    • tokyonight_storm
  • Update if there are updates
  • Build a cache if the themes are expired

πŸš€ How to use

To Install or Update the themes

git clone https://github.com/0xTadash1/bat-into-tokyonight
cd bat-into-tokyonight
./bat-into-tokyonight

I recommend you to do (./bat-into-tokyonight >/dev/null 2>&1 &) in a file such as .bashrc or .zshrc.

3 ways to switch theme for bat

Uninstall / Cleanup themes

Remove this plugin directory, and then:

command rm -rf "$(command bat --config-dir)/themes/tokyonight.nvim/"
command bat cache --build

❓ Why bring a Neovim theme?

I prefer the colors of Folke flavored Tokyo Night theme.

Enkia, probably the original creator of Tokyo Night, also makes a Sublime Text theme. If you prefer the original author's, you should use that. It's much stable.

πŸ’• Thanks

πŸ“ƒ License

MIT

About

πŸ¦‡ Bat into Tokyo Night πŸŒƒ

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages