Switching to zsh from bash

Terminal ( a more common word bash ) is very common in the world of linux.

What is zsh ?

The Z shell (zsh) is a Unix shell that can be used as an interactive login shell and as a powerful command interpreter for shell scripting. It improves the ability of bash i.e built in shell in linux; it makes a shell   more interactive using more than 140 themes.

Installing zsh –

Things to be required to before migrating

  1. Any linux disro
  2. Installed git ( $sudo apt-get install git )
  3. Installed curl or wget ( $sudo apt-get install curl or wget )
  4. Installed zsh latest version ( $sudo apt-get install zsh )

Installing oh my zsh –

via curl : $sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
via wget : $sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

For manual installation –

First we need to clone the repository :
$git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
Creating a new zsh file for configuration :
$cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
Finally for changing your shell :
$chsh -s /bin/zsh
For upgrading oh my zsh manually :
upgrade_oh_my_zsh
For executing bash while using zsh :
$exec bash
$exec zsh

Further we can configure it in ~/.zshrc file.

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s