Browse Source

Add theme-switcher

coc
Schneider 7 years ago
parent
commit
0cb1a221c6
  1. 5
      vimrc.symlink
  2. 15
      zsh/custom.zsh

5
vimrc.symlink

@ -87,6 +87,11 @@ filetype plugin indent on " required
" THEME{{{
colorscheme solarized
set background=dark"
let themeenv=$THEME_SWITCHER
if themeenv=='light'
set background=light
endif
" }}}
" SETTINGS{{{

15
zsh/custom.zsh

@ -1,4 +1,8 @@
if [ "light" = "$THEME_SWITCHER" ]; then
ZSH_THEME="sunrise"
else
ZSH_THEME="agnoster"
fi
HIST_STAMPS="dd.mm.yyyy"
COMPLETION_WAITING_DOTS="true"
@ -19,3 +23,14 @@ if hash ag 2&> /dev/null; then
export FZF_DEFAULT_COMMAND='ag -g ""'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
fi
swth()
{
if [ "$THEME_SWITCHER" = "light" ]; then
unset THEME_SWITCHER
source ~/.zshrc
else
export THEME_SWITCHER="light"
source ~/.zshrc
fi
}
Loading…
Cancel
Save