Level Up Your Linux Shell with ZSH 🌱

What is ZSH?

The Z shell (Zsh) is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting. Zsh is an extended Bourne shell with many improvements, including some features of Bash, ksh, and tcsh. -https://en.wikipedia.org/wiki/Z_shell

Install ZSH

  1. Log into the Linux device
  2. Run the following commands in a terminal window
    # update apt repositories
    sudo apt update
    # install zsh
    sudo apt install zsh -y
    # test zsh is working
    zsh --version
    # set zsh as the default shell
    chsh -s $(which zsh)
    # close the current terminal window
    exit
  3. Logout and back in or reboot the Linux device
  4. Launch a new terminal window to verify ZSH is now the default shell
  5. Step through the configuration questions
  6. That's it! Enjoy the power and beauty of zsh

Install Oh My ZSH (Optional, but highly recommended)

  1. Continue with the following commands in a terminal window
    # install oh my zsh
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"