This gists contains my terminal setup on Ubuntu 16.04 which includes:
- ZSH
- Oh-my-zsh
- Terminator (optional, also work with gnome-terminal)
- Powerline symbols
- Mononoki font
- Solarized
- dircolors-solarized
- basic zshrc config including:
- agnoster theme
- default user (shortened prompt)
- zsh syntax highlighting
- autojump, git, colored-man-pages, web-search plugins and more...
It is mainly copy/paste from several other gists, and few additional personal stuff:
- https://gist.github.com/tsabat/1498393
- https://gist.github.com/renshuki/3cf3de6e7f00fa7e744a
- https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md
If not installed already
sudo apt install git-core
sudo apt install curl
sudo apt install dconf-cli
sudo apt install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
chsh -s `which zsh`
Restart the computer
sudo shutdown -r 0
sudo add-apt-repository ppa:gnome-terminator
sudo apt update
sudo apt install terminator
First install powerline symbols, which is required to correctly render agnoster theme.
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
If ~/.fonts does not exist already:
mkdir ~/.fonts
mv PowerlineSymbols.otf ~/.fonts/
If ~/.config/fontconfig/conf.d does not exist already:
mkdir -p ~/.config/fontconfig/conf.d
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
Then install mononoki which is a very nice font.
wget https://github.com/madmalik/mononoki/releases/download/1.2/mononoki.zip
mkdir ~/.fonts/mononoki
unzip mononoki.zip -d ~/.fonts/mononoki/
rm mononoki.zip
fc-cache -vf ~/.fonts/
git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git ~/.solarized
cd ~/.solarized
./install.sh
(Use dark-theme 1 when prompted)
cd ~
wget https://raw.githubusercontent.com/seebi/dircolors-solarized/master/dircolors.ansi-dark
mv dircolors.ansi-dark ~/.solarized
sudo apt install autojump
sudo apt install python-pygments
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting
vim .zshrc
Write at the end:
DEFAULT_USER=`whoami`
eval `dircolors ~/.solarized/dircolors.ansi-dark`
Edit line
ZSH_THEME="agnoster"
Edit line
plugins=(git autojump command-not-found python pip zsh-syntax-highlighting colored-man-pages colorize cp web-search gnu-utils jira nyan)
source ~/.zshrc
- Preferences>Profiles>Colors>Foreground and Background>Built-in schemes: Solarized dark
- Preferences>Profiles>Colors>Palette>Built-in schemes: Solarized
- Preferences>Profiles>General>Custom font> mononoki Regular 14