zsh in ubuntu

Zsh is a shell designed for interactive use, although it is also a powerful scripting language, in this post i will describe how to install and configure it

first install it from the repository by doing :

 sudo apt-get install zsh 

to install the grml config issu the following command in your home dir :

 wget -O .zshrc http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc 

to also install the user config from grml issue :

 wget -O .zshrc.local  http://git.grml.org/f/grml-etc-core/etc/skel/.zshrc 

to enable fish like syntax highlighting :

 git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
    echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc

Then, enable syntax highlighting in the current interactive shell:

 source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 

to test your newly installed zsh shell run zsh in bash
if you want to use zsh as your default shell issue :

 chsh -s $(which zsh) 

Leave a Reply

Your email address will not be published. Required fields are marked *