summaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-07-10 12:52:32 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-07-10 12:52:32 +0100
commit3dcdc24061b35b358d454ff0cb47cd7206499ab4 (patch)
treebadabe130d40a77266f63d92e09a40db8aa556d4 /zshrc
parentec6b8ec9fa98cec4bf3fa6ef64112847f13b2e5a (diff)
Add color environment variables for zsh and vim
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc19
1 files changed, 16 insertions, 3 deletions
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
+}