From ee6ccb20f556a343d090ad35abee6e1f99457472 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 10 Jul 2015 17:10:37 +0100 Subject: Define programs colorscheme based on default --- zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'zshrc') diff --git a/zshrc b/zshrc index 3ad65c8..d3f8e40 100644 --- a/zshrc +++ b/zshrc @@ -154,12 +154,21 @@ fi export TERM=xterm-256color export COLORSCHEME=light +default() { + $HOME/.bin/recolor.sh < ~/.Xresources.default + xrdb ~/.Xresources.default + export COLORSCHEME=default + sed -i "s/export COLORSCHEME=.*/export COLORSHEME=default/g" ~/.zshrc +} + light() { + $HOME/.bin/recolor.sh < ~/.Xresources.light xrdb ~/.Xresources.light export COLORSCHEME=light } dark() { + $HOME/.bin/recolor.sh < ~/.Xresources.dark xrdb ~/.Xresources.dark export COLORSCHEME=dark } -- cgit v1.2.3