Mercurial > dotfiles
changeset 506:36ba70d17fd6
Add One Dark theme for bat
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sat, 18 Dec 2021 10:35:27 +0100 |
parents | 38b7afc9e492 |
children | a1ff0b7b405b |
files | .chezmoiexternal.toml .chezmoiscripts/run_once_after_10_bat_cache.sh.tmpl dot_bashrc dot_config/bat/config dot_zshrc |
diffstat | 5 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/.chezmoiexternal.toml Mon Dec 13 12:16:59 2021 +0100 +++ b/.chezmoiexternal.toml Sat Dec 18 10:35:27 2021 +0100 @@ -18,3 +18,8 @@ exact = true stripComponents = 1 refreshPeriod = "168h" + +[".config/bat/themes/One Dark.tmTheme"] + type = "file" + url = "https://raw.githubusercontent.com/andresmichel/one-dark-theme/master/One Dark.tmTheme" + refreshPeriod = "168h"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.chezmoiscripts/run_once_after_10_bat_cache.sh.tmpl Sat Dec 18 10:35:27 2021 +0100 @@ -0,0 +1,5 @@ +{{ if (or (eq .chezmoi.os "linux") (eq .chezmoi.os "darwin")) -}} +#!/usr/bin/env bash + +bat cache --build +{{ end -}}
--- a/dot_bashrc Mon Dec 13 12:16:59 2021 +0100 +++ b/dot_bashrc Sat Dec 18 10:35:27 2021 +0100 @@ -106,6 +106,7 @@ export HGEDITOR=nvim export RIPGREP_CONFIG_PATH=$HOME/.config/ripgrep/ripgreprc +export BAT_CONFIG_PATH=$HOME/.config/bat/config stty > /dev/null
--- a/dot_config/bat/config Mon Dec 13 12:16:59 2021 +0100 +++ b/dot_config/bat/config Sat Dec 18 10:35:27 2021 +0100 @@ -1,2 +1,2 @@ ---theme="One Dark Tomorrow" +--theme="One Dark" --pager="less -FR"
--- a/dot_zshrc Mon Dec 13 12:16:59 2021 +0100 +++ b/dot_zshrc Sat Dec 18 10:35:27 2021 +0100 @@ -209,6 +209,7 @@ export HGEDITOR=nvim export RIPGREP_CONFIG_PATH=$HOME/.config/ripgrep/ripgreprc +export BAT_CONFIG_PATH=$HOME/.config/bat/config [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh export FZF_DEFAULT_COMMAND='ag -g ""'