From 3dcdc24061b35b358d454ff0cb47cd7206499ab4 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 10 Jul 2015 12:52:32 +0100 Subject: Add color environment variables for zsh and vim --- zshrc | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'zshrc') diff --git a/zshrc b/zshrc index af6361e..3ad65c8 100644 --- a/zshrc +++ b/zshrc @@ -20,6 +20,7 @@ if ! zgen saved; then # Other plugins zgen load rupa/z + zgen load djui/alias-tips zgen load tarruda/zsh-autosuggestions zgen load Tarrasch/zsh-autoenv zgen load uvaes/fzf-marks plugin develop @@ -88,8 +89,6 @@ alias upgrade='sudo apt-get upgrade' alias v='vim' alias x='sh ~/.xmodmap' alias xcape='/home/urbain/xcape/xcape' -alias light='xrdb ~/.Xresources.light' -alias dark='xrdb ~/.Xresources.dark' # Configuration alias em="$EDITOR ~/.mutt/muttrc" @@ -139,7 +138,6 @@ fshow() { [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh -TERM=xterm-256color if [[ -n ${TMUX} && -n ${commands[tmux]} ]];then case $(tmux showenv TERM 2>/dev/null) in @@ -150,3 +148,18 @@ if [[ -n ${TMUX} && -n ${commands[tmux]} ]];then TERM=screen esac fi + + +# Colors +export TERM=xterm-256color +export COLORSCHEME=light + +light() { + xrdb ~/.Xresources.light + export COLORSCHEME=light +} + +dark() { + xrdb ~/.Xresources.dark + export COLORSCHEME=dark +} -- cgit v1.2.3