-
Install https://github.com/sindresorhus/dark-mode
$ brew install dark-mode
-
Download
iterm_profile.zsh
$ git clone https://gist.github.com/romac/6538f76874d276beab3f260a0aa34fcf $HOME/some/directory/iterm_profile
-
Source
iterm_profile.zsh
$ echo 'source $HOME/some/directory/iterm_profile/iterm_profile.zsh' >> .zshrc
-
Open a new shell, et voila!
Note: You can manually trigger a profile change with:
$ adapt_theme
You can choose a Vim theme based on the current iTerm Profile with:
if $ITERM_PROFILE == 'Light'
set background=light
colorscheme solarized8_high
else
set background=dark
colorscheme hybrid
endif