Skip to content

Instantly share code, notes, and snippets.

@aubryio
Last active November 6, 2018 06:11
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aubryio/6eafc25feaa096adef351d7a634992b5 to your computer and use it in GitHub Desktop.
Save aubryio/6eafc25feaa096adef351d7a634992b5 to your computer and use it in GitHub Desktop.
Awesome terminal

Awesome terminal

cool terminal

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:

Steps

Prerequisits

If not installed already

sudo apt install git-core

sudo apt install curl

sudo apt install dconf-cli

Zsh

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

Terminator (optional, also work with default gnome-terminal)

sudo add-apt-repository ppa:gnome-terminator

sudo apt update

sudo apt install terminator

Fonts (Mononoki, Powerline symbols)

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/

Install Solarized

git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git ~/.solarized

cd ~/.solarized

./install.sh

(Use dark-theme 1 when prompted)

Install dircolors-solarized

cd ~

wget https://raw.githubusercontent.com/seebi/dircolors-solarized/master/dircolors.ansi-dark

mv dircolors.ansi-dark ~/.solarized

Install zsh plugins requirements

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

.zshrc config

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

Edit your terminal profile

  • 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

Enjoy !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment