mirror of https://github.com/sharkdp/bat.git
Use default Markdown syntax, closes #157
This commit is contained in:
parent
26d409db65
commit
9d92350cbb
|
@ -13,9 +13,6 @@
|
|||
[submodule "assets/themes/sublime-monokai-extended"]
|
||||
path = assets/themes/sublime-monokai-extended
|
||||
url = https://github.com/jonschlinkert/sublime-monokai-extended
|
||||
[submodule "assets/syntaxes/Markdown-Extended"]
|
||||
path = assets/syntaxes/Markdown-Extended
|
||||
url = https://github.com/jonschlinkert/sublime-markdown-extended
|
||||
[submodule "assets/syntaxes/Docker"]
|
||||
path = assets/syntaxes/Docker
|
||||
url = https://github.com/asbjornenge/Docker.tmbundle
|
||||
|
|
18
README.md
18
README.md
|
@ -78,13 +78,13 @@ makepkg -si
|
|||
|
||||
You can install a precompiled [`bat` package](https://www.freshports.org/textproc/bat) with pkg:
|
||||
|
||||
```sh
|
||||
```bash
|
||||
pkg install bat
|
||||
```
|
||||
|
||||
or build it on your own from the FreeBSD ports:
|
||||
|
||||
```sh
|
||||
```bash
|
||||
cd /usr/ports/textproc/bat
|
||||
make install
|
||||
```
|
||||
|
@ -127,10 +127,10 @@ mkdir -p "$BAT_CONFIG_DIR/themes"
|
|||
cd "$BAT_CONFIG_DIR/themes"
|
||||
|
||||
# Download a theme, for example:
|
||||
git clone https://github.com/jonschlinkert/sublime-monokai-extended
|
||||
git clone https://github.com/greggb/sublime-snazzy
|
||||
|
||||
# Create a 'Default.tmTheme' link
|
||||
ln -s "sublime-monokai-extended/Monokai Extended.tmTheme" Default.tmTheme
|
||||
# Create a link for the default theme
|
||||
ln -sf "sublime-snazzy/Sublime Snazzy.tmTheme" Default.tmTheme
|
||||
```
|
||||
|
||||
Create a folder with language definition files:
|
||||
|
@ -140,9 +140,8 @@ mkdir -p "$BAT_CONFIG_DIR/syntaxes"
|
|||
cd "$BAT_CONFIG_DIR/syntaxes"
|
||||
|
||||
# Download some language definition files, for example:
|
||||
git clone https://github.com/sublimehq/Packages/
|
||||
rm -rf Packages/Markdown
|
||||
git clone https://github.com/jonschlinkert/sublime-markdown-extended
|
||||
git clone https://github.com/sublimehq/Packages
|
||||
git clone https://github.com/danro/LESS-sublime
|
||||
```
|
||||
|
||||
Finally, use the following command to parse all these files into a binary
|
||||
|
@ -152,6 +151,9 @@ cache:
|
|||
bat cache --init
|
||||
```
|
||||
|
||||
Use `bat --list-languages` and `bat --list-themes` to check if all languages and themes are
|
||||
available.
|
||||
|
||||
If you ever want to go back to the default settings, call:
|
||||
|
||||
```bash
|
||||
|
|
|
@ -2,10 +2,4 @@
|
|||
|
||||
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"
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 7b7a83aeeaf3afc752f7d921b10051330557aa0e
|
Loading…
Reference in New Issue