mirror of
https://github.com/sharkdp/bat
synced 2024-11-26 22:00:30 +00:00
28 lines
744 B
Bash
28 lines
744 B
Bash
set -e
|
|
|
|
THEME_FOLDER="$HOME/.config/bat/themes"
|
|
SYNTAX_FOLDER="$HOME/.config/bat/syntax"
|
|
|
|
if [ ! -e "$THEME_FOLDER" ]; then
|
|
mkdir -p "$THEME_FOLDER"
|
|
(
|
|
cd "$THEME_FOLDER"
|
|
git clone https://github.com/jonschlinkert/sublime-monokai-extended
|
|
ln -s "sublime-monokai-extended/Monokai Extended.tmTheme" Default.tmTheme
|
|
)
|
|
fi
|
|
|
|
if [ ! -e "$SYNTAX_FOLDER" ]; then
|
|
mkdir -p "$SYNTAX_FOLDER"
|
|
(
|
|
cd "$SYNTAX_FOLDER"
|
|
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/princemaple/elixir-sublime-syntax/
|
|
)
|
|
fi
|
|
|
|
bat init-cache
|
|
|
|
cp "$HOME/.cache/bat"/* .
|