Loading…

ZSH – bash 2.0?

Recently a colleague suggested me to try ZSH instead of my old bash shell. As ZSH is having all functions I used in bash and adds a ton of additional possibilities like a git integration, I am very happy with that change.

Install ZSH and oh-my-zsh (nice configuration framework):

sudo apt-get update
sudo apt upgrade

sudo apt install zsh
sudo apt-get install powerline fonts-powerline

git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

Edit ZSH config:

nano ~.zshrc

I am currently using agnoster theme:

ZSH_THEME="agnoster"

alias ki='ssh -4 root@ki'
alias n3='ssh -4 root@n3'
alias ll='ls -la'
chsh -s /bin/zsh

Finally logout / reboot to get the new ZSH shell.

Source: https://dev.to/mskian/install-z-shell-oh-my-zsh-on-ubuntu-1804-lts-4cm4

Author: Anton Bracke

Software engineering student from Germany. Loves programming in PHP, JS and sometimes C.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.