Skip to content

Instantly share code, notes, and snippets.

@yogeek
Forked from renshuki/ubuntu_agnoster_install.md
Last active January 9, 2018 18:29
Show Gist options
  • Save yogeek/4bcce0f56d696d8d1100f288ee0ef5ce to your computer and use it in GitHub Desktop.
Save yogeek/4bcce0f56d696d8d1100f288ee0ef5ce to your computer and use it in GitHub Desktop.
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install ZSH

sudo yum install zsh

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

Install Oh My ZSH

cd
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Setup missing fonts (powerline)

Install powerline font

cd
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
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

Theme

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

ZSH_THEME="agnoster"

Change theme colors to solarize

git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git ~/.solarized
cd ~/.solarized
./install.sh
  • 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`

For Mate

git clone https://github.com/oz123/solarized-mate-terminal.git

To activate dark solarize theme :

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

Restart Terminal and you're done!

powerlevel9k

git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k ZSH_THEME="powerlevel9k/powerlevel9k"

git clone https://github.com/gabrielelana/awesome-terminal-fonts

  • copy all the fonts from ./build directory to ~/.fonts directory
  • copy all the font maps (all *.sh files) from ./build directory to ~/.fonts directory
  • run fc-cache -fv ~/.fonts to let freetype2 know of those fonts
  • customize the configuration file ./config/10-symbols.conf replacing PragmataPro with the name of the font you want to use in the terminal (I will add more fonts in the future so that this step could be skippable)
  • copy the above configuration file to ~/.config/fontconfig/conf.d directory
  • source the font maps (source ~/.fonts/*.sh) in your shell startup script (eg. ~/.bashrc or ~/.zshrc)

POWERLEVEL9K_MODE='awesome-fontconfig'

That's it!

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

cd
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Setup missing fonts (powerline)

Install powerline font

cd
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
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

Theme

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

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://github.com/sigurdga/gnome-terminal-colors-solarized.git ~/.solarized
cd ~/.solarized
./install.sh
  • 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

@yogeek
Copy link
Author

yogeek commented Jan 9, 2018

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