summaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-07-10 17:10:37 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-07-10 17:10:37 +0100
commitee6ccb20f556a343d090ad35abee6e1f99457472 (patch)
tree86a3acf2b0ec4e14c4ff8913f6478472ae657ffc /zshrc
parent5fe49cc123b1cc363e1cf6305884c64e71f73670 (diff)
Define programs colorscheme based on default
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc9
1 files changed, 9 insertions, 0 deletions
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
}