Skip to content

Instantly share code, notes, and snippets.

@RenanMatias
Created April 7, 2022 14:52
Show Gist options
  • Save RenanMatias/0f533fb5ff78a38504986bfe792ca848 to your computer and use it in GitHub Desktop.
Save RenanMatias/0f533fb5ff78a38504986bfe792ca848 to your computer and use it in GitHub Desktop.
Enabling ZSH on Ubuntu

Reference

Install and Config

  1. ZSH

    sudo apt install zsh -y
    sudo apt-get install powerline fonts-powerline -y
    chsh -s /bin/zsh
  2. Reboot Terminal Ubuntu

    1. Type q
  3. Install Oh My ZSH

    sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  4. Reboot Terminal Ubuntu

  5. Install ZSH Syntax Highlighting

    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
  6. Access ZSH Auto Suggestions

    git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  7. Access Spaceship ZSH

    git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
    ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
  8. Open file .zshrc

    nano ~/.zshrc
    1. Change ZSH_THEME="robbyrussell" to:
      ZSH_THEME="spaceship"
      
    2. Change plugins=(git) to:
      plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
      
    3. Save file and exit (ctrl+O and ctrl+X)
  9. Reboot Terminal Ubuntu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment