Skip to content

Instantly share code, notes, and snippets.

@ajfriend
Last active March 1, 2025 03:45
Show Gist options
  • Save ajfriend/75636da826eb51b564b7b5aae3dc1765 to your computer and use it in GitHub Desktop.
Save ajfriend/75636da826eb51b564b7b5aae3dc1765 to your computer and use it in GitHub Desktop.

How to get bat to highlight your justfiles.

From https://hynek.me/til/bat-justfile/

In the form of a justfile rule:

mkdir -p "$(bat --config-dir)/syntaxes"
cd "$(bat --config-dir)/syntaxes"
git clone https://github.com/nk9/just_sublime.git
rm \
  'just_sublime/Syntax/Embeddings/Python (for Just).sublime-syntax' \
  'just_sublime/Syntax/Embeddings/ShellScript (for Just).sublime-syntax'
bat cache --build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment