Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH

sudo apt-get install zsh

Restart your terminal. Choose option 2 for Z Shell configuration.
Don't forget to migrate your previous configurations (RVM, Rbenv...) from .bashrc to .zshrc

Install Oh My ZSH

sh -c "$(curl -fsSL"

Setup missing fonts (powerline)

Install powerline font

mv PowerlineSymbols.otf ~/.fonts/
mkdir -p .config/fontconfig/conf.d #if directory doesn't exists

Clean fonts cache

fc-cache -vf ~/.fonts/

Move config file

mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/

Configure ZSH

vim ~/.zshrc


Change [ZSH_THEME="robbyrussell"] to [ZSH_THEME="agnoster"]


Change theme colors to solarize

dconf is required if you don't already have it.

sudo apt-get install dconf-cli
git clone git:// ~/.solarized
cd ~/.solarized
  • I recommend you option 1 (dark theme) which is just great.
  • Choose option 1 to download seebi' dircolors-solarized

After installation, open .zshrc and add the line:

eval `dircolors ~/.dir_colors/dircolors`

To activate dark solarize theme in Terminator just right click on the terminal,

Preferences>Profiles>Colors>Foreground and Background>Built-in schemes: Solarized dark Preferences>Profiles>Colors>Palette>Built-in schemes: Solarized

Restart Terminator and you're done!

Ruby developer (optional)


If you are Ruby developer you can use these plugins by replacing plugins in .zshrc

plugins=(git rails rails3 ruby capistrano bundler heroku rake rvm autojump command-not-found python pip github gnu-utils history-substring-search zsh-syntax-highlighting)

Ruby version prompt

(Add one of the line below into your .zshrc file)

RVM users
RPROMPT="\$(~/.rvm/bin/rvm-prompt s i v g)%{$fg[yellow]%}[%*]"
Rbenv users
RPROMPT='%{$fg[yellow]%}$(rbenv version-name)%{$reset_color%}%'

That's it!

'Agnoster' is an Awesome theme I've ever seen.
Thank you !!! πŸ‘


panigrc commented Jun 21, 2016

Thanks, awesome guide !!!

arrchana commented Jul 8, 2016

Thanks for the great guide! Worked like a breeze πŸ‘ 😎

billhhh commented Jul 23, 2016

great, I made it on CentOS by following your totorial

addoull commented Aug 5, 2016

thanks and keep the good work

Thanks for putting this together. :) Awesome guide!

Thanks πŸ˜„

quang-ha commented Sep 30, 2016

@renshuki This is lovely - can the directory address be shortened?


renshuki commented Oct 7, 2016

In .oh-my-zsh/themes/agnoster.zsh-theme look for line #189:

# Dir: current working directory
prompt_dir() {
  prompt_segment blue black '%~'

Replace prompt_segment blue black '%~' by prompt_segment blue black '%(4~|.../%3~|%~)' and restart your terminal :)
It will add "..." and keep the last 3 directories.

Awesome mate! Thank you so much for this πŸ‘

πŸ‘ from me! Thanks!

silne30 commented Feb 10, 2017

πŸ‘ This is a fantastic writeup! I really appreciate it! bitmoji

Thinks!! Awesome instruction

I so wanted this setup. Thank you for the gist.

Super clear, thanks a lot !

thanks man

As of writing this comment, dircolors.ansi-dark is a file not a directory so after you run

mv dircolors.ansi-dark .solarized

You need to add

eval `dircolors ~/.solarized`

Instead of

eval `dircolors ~/.solarized/dircolors.ansi-dark`

renshuki commented Jun 12, 2017

I've not done a fresh install for a while but it seems gnome-terminal-colors-solarized repository has been updated. This Gist has been modified accordingly. I try to keep it up to date as possible so if you notice something wrong, feel free to drop me a line here =)

Thank you!

djm158 commented Oct 3, 2017

This is exactly what I was looking for thank you!

When i install the

git clone git:// ~/.solarized cd ~/.solarized ./

my terminal font color,size,resolution are all changed !
Uploading Screenshot from 2017-11-03 19-48-30.png…

terminal setting gone from left to right

gdahboy commented Nov 9, 2017

perfect ... really thank you πŸ‘

Worked like a charm. Thanks a ton.


Very nice walkthrough, very helpfull. love my new prompt :)

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