Terminal Theme Configuration
A dark theme for terminal related panels, especially on Mac, such as vim, shell and tmux.
Cross-platform dark theme authored by Yida Wang
Environments: Linux/Unix platform
Installation
Configuration download
git clone https://github.com/wangyida/terminal-themes.git
cd terminal-themes
For machines which support true color, Base16 for Shells could be installed in advance
git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell
ZSH setups
cp ./zshrc ~/.zshrc
Once zsh is installed, oh-my-zsh
could be installed via
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
Then zsh syntax highlighting tool could be downloaded by
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
Finally set it up by source
source ~/.zshrc
VIM setups
Set up [Vundle] for package management:
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
cp ./vimrc ~/.vimrc
source ~/.vimrc
To install Plugins, launch vim
and run :PluginInstall
The IR_BLACK theme could be adopted by
base16_irblack
Font
A typeface designed for source code
Hack is designed to be a workhorse typeface for code. It has deep roots in the libre, open source typeface community and expands upon the contributions of the Bitstream Vera & DejaVu projects. The project is in active development. We welcome your input and contributions.
Editors
VIM
Some themes in vim might not be available when the terminal supports true color, but you have not define this in .vimrc, In April Vim merged patch 7.4.1799, which appears to simplify settings for using true colors in the terminal. After upgrading to this patch, users simply had to include set termguicolors in their vimrc to get true colors in the terminal– the one caveat being that it has to be a terminal like iTerm2 that also supports “true colors”.
You should define this for Iterm:
" gui colors if running iTerm
if $TERM_PROGRAM =~ "iTerm"
set termguicolors
endif
So vim will be something like this:
It also works well with editing with YouCompleteMe, here is a python version for it.
Tmux
iTerm
You should have a test for determing whether the specific terminal like iTerm supports true color or not by executing:
perl test.pl
and the results will be something like this:
Here we can use the embeded function
imgcat
in iTerm for perviewing images in terminal.
ipython
This theme also works for iPython kernels