[vim] set colorscheme/background from env variable

This commit is contained in:
Nick Nisi
2014-11-21 08:19:44 -06:00
parent 0911eba8a7
commit c411c33332
2 changed files with 3 additions and 3 deletions

View File

@@ -121,8 +121,8 @@ syntax on
set encoding=utf8
let base16colorspace=256 " Access colors present in 256 colorspace"
set t_Co=256 " Explicitly tell vim that the terminal supports 256 colors"
set background=dark
colorscheme base16-eighties
execute "set background=".$BACKGROUND
execute "colorscheme ".$THEME
" set number " show line numbers
set relativenumber " show relative line numbers

View File

@@ -55,7 +55,7 @@ source `brew --prefix`/etc/profile.d/z.sh
# Base16 Shell
export THEME="base16-harmonic16"
export THEME="base16-pop"
export BACKGROUND="dark"
BASE16_SHELL="$DOTFILES/.config/base16-shell/$THEME.$BACKGROUND.sh"
[[ -s $BASE16_SHELL ]] && source $BASE16_SHELL