Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Tutorials»How to Install ZSH (Z Shell) on Ubuntu 20.04

    How to Install ZSH (Z Shell) on Ubuntu 20.04

    RahulBy RahulAugust 23, 20202 Mins ReadUpdated:July 16, 2021

    The Zsh (Z shell) is a interactive login shell for the Unix/Linux systems. It has multiple improvement over the Bash shell and includes the best features of the Bash, ksh and tcsh shells. This tutorial will help you to install ZSH on Ubuntu 20.04 LTS Linux system.

    A Running Zsh Shell on Ubuntu
    A Running Zsh Shell on Ubuntu

    Installing ZSH on Ubuntu

    Zsh packages are available under the default apt repositories. So first, update the Apt cache on your system with latest available packages.

    sudo apt update 
    

    Then type below command to install zsh shell packages with required dependencies.

    sudo apt install zsh
    

    Installing ZSH on Ubuntu 20.04

    Once the installation completed, let’s check the installed Zsh shell version by running command:

    zsh --version
    

    Check ZSH Shell Version on Ubuntu 20.04

    Installing Oh-My-Zsh Plugin

    On-My-Zsh plugin provides a large number of customization for the Z shell. So without this plugion Zsh plugin is incomplete. So we also recommend to install this plugin on with Zsh shell.

    sudo apt install git-core curl fonts-powerline 
    

    Oh-My-Zsh provides a shell script for the installation on Linux systems. Execute the following command to install this plugion on your system.

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

    This will ask you to setup Zsh as default set. You can access or reject this as your choice. After that installation will complete within few seconds.

    You may like to change Zsh theme by editiog ~/.zshrc file on your system. You can select a theme from here.

    sudo vi ~/.zshrc 
    

    Set theme name to ZSH_THEME environment variable.

    Shell
    1
    2
    3
    4
    5
    6
    # Set name of the theme to load --- if set to "random", it will
    # load a random theme each time oh-my-zsh is loaded, in which case,
    # to know which specific one was loaded, run: echo $RANDOM_THEME
    # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
     
    ZSH_THEME="agnoster"

    Save file and close it. Then launch a new shell to apply changes.

    Launch Zsh Shell Terminal

    To launch a Zsh shell terminal just type “zsh” from your current shell.

    zsh 
    

    Start a new Z shell terminal

    Conclusion

    In this tutorial, you have learned about installation off Zsh shell on Ubuntu system. Also installed Oh-My-Zsh plugin on your system.

    shell zsh
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Install AnyDesk on Ubuntu 20.04
    Next Article How to Install Dotnet Core on Ubuntu 20.04

    Related Posts

    (Resolved) userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms

    Updated:May 10, 20221 Min Read

    How to Install Apache ActiveMQ on Ubuntu 22.04

    3 Mins Read

    How To Enable SSH Server on Ubuntu 22.04

    Updated:April 22, 20222 Mins Read

    How To Install LAMP Stack on Ubuntu 22.04 LTS

    Updated:April 20, 20225 Mins Read

    10 Best Linux Video Players in 2022

    Updated:February 18, 20226 Mins Read

    (Resolved) -bash: /bin/mv: Argument list too long

    Updated:January 13, 20222 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Enable / disable Firewall in Windows
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.