This tutorial is built to work on Ubuntu. It should work with other linux distro with proper package installer. In order to made this terminal, we need 3 main tools.
- ZSH, a powerful scripting language that designed for interactive use
- oh-my-zsh, a zsh framework to manage ZSH configuration
- Solarized, a cool color pallete for terminal
If you used to use bash as your default terminal, you will feel very convenient while using ZSH. The first step to customize your terminal is installing git.
sudo apt-get install git-core
Git is essential because almost all the tools are hosted using git. Now, let us install ZSH.
sudo apt-get install zsh
Then, proceed to install oh-my-zsh
wget –no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O – | sh
Next, make ZSH as your default terminal.
chsh -s /bin/zsh
Easy. Now, restart your terminal and you'll have your terminal enhanced. ZSH have some features that would ease your development like auto completion of command, directory, and shortcuts. You can see it at here. The functional enhancement is done, now, let's tackle the style part. It is indeed stylish terminal makes me likes using terminal as it's color is very neat and compelling. :D.
Fortunately, oh-my-zsh has abundant amount of built-in style. You can choose one from here. I use agnoster as my style. To pick your theme, edit the .zshrc file at your user home directory and sent the ZSH_THEME into the one you choose. :)
For the color pallet, there are a lot of color pallet on the web, but I choose Solarized. It is very neat and well designed. To use this, run this command.
git clone https://github.com/sigurdga/gnome-terminal-colors-solarized.git
Remember that Ubuntu use gnome for it's desktop graphic. For, other linux distro, you need to use the other one like the KDE version. After that, put this line into .zshrc file.
source <PATH_TO_gnome-terminal-colors-solarized>/set_dark.sh
There are two types for solarized. It is light and dark. You can use set_light.sh for a bright style, but I prefer dark because it gives me more contrast color. The last step is to restart your terminal! Done! It should give you a cool new looking good terminal. :D. Let me know if you face some difficulties. I would be happy to help. :)
Tidak ada komentar:
Posting Komentar