mirror of
https://github.com/sharkdp/bat
synced 2024-11-18 15:26:16 +00:00
145b99f01c
This changes a few things: - All syntaxes and themes are now stored (as submodules) under assets/syntaxes and assets/themes - The default directories for syntaxes and themes are "syntaxes" and "themes" (used to be "syntax" and "themes") - The "bat cache" command can now take a `--source <dir>` and `--target <dir>` option. - The cached files have been renamed to "themes.bin" and "syntaxes.bin"
12 lines
312 B
Bash
12 lines
312 B
Bash
#!/bin/bash
|
|
|
|
ASSET_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
DEFAULT_MARKDOWN_SYNTAX="$ASSET_DIR/syntaxes/Packages/Markdown"
|
|
|
|
rm -rf "$DEFAULT_MARKDOWN_SYNTAX"
|
|
|
|
bat cache --init --source="$ASSET_DIR" --target="$ASSET_DIR"
|
|
|
|
git -C "$ASSET_DIR/syntaxes/Packages" checkout "$DEFAULT_MARKDOWN_SYNTAX"
|