mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-21 19:11:30 +01:00
zsh: add support for THEME_PREFER_LIGHT env variable for bat theme
This commit is contained in:
parent
0c52f21233
commit
5a1c3c07ac
|
@ -81,7 +81,11 @@ if [[ "$(command -v bat)" || "$(command -v batcat)" ]]; then
|
|||
alias cat=batcat
|
||||
export PAGER=batcat
|
||||
fi
|
||||
if [[ -n $THEME_PREFER_LIGHT ]]; then
|
||||
export BAT_THEME="gruvbox-light"
|
||||
else
|
||||
export BAT_THEME="gruvbox-dark"
|
||||
fi
|
||||
export BAT_PAGER="less $LESS"
|
||||
export PAGER=bat
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user