iTerm 2
iTerm2 is a replacement for Terminal, it brings the terminal into the modern age with useful features making it more productive and customisable. You can download iTerm 2 from the official website.
Installing Zsh
Open up iTerm then run the following code:
sudo apt-get install zsh
Once the install is completed check that it was installed correctly by running:
zsh --version
If you have any problems installing Zsh, take a look at the Zsh installation guide.
Making Zsh your default shell without root access
Make it your default shell by running:
chsh -s $(which zsh)
Quit the terminal then re-run it typing in:
echo $SHELL
it should output /bin/zsh
If that didn’t work try this:
Within your home directory create these files (you may already have these files) and add the following codes to use Zsh as default shell.
.bash_profile
export SHELL=/bin/zsh
exec /bin/zsh -l
.profile
export SHELL=/bin/zsh
[ -z "$ZSH_VERSION" ] && exec /bin/zsh -l
Oh-My-Zsh
With oh-my-zsh it allows you to apply themes and change the look and feel of your terminal. Plugins such as Sublime enables you to type in subl .
to open up Sublime in its current folder.
Installing Oh-My-Zsh
Check if you already have zsh on your system by running zsh –version in your terminal. If not then run
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
to get it installed onto your system.
Applying themes and enabling plugins
In your .zshrc file
ZSH_THEME="clean"
plugins=(git sublime bundler osx rake ruby)
if you come across any issues take a look at the the Oh-My-Zsh guide