Skip to content

Instantly share code, notes, and snippets.

@codeagencybe
Forked from cristian-aldea/slick-terminal.md
Created July 9, 2022 16:39
Show Gist options
  • Save codeagencybe/756214b0da9432c055c5aa71078259f0 to your computer and use it in GitHub Desktop.
Save codeagencybe/756214b0da9432c055c5aa71078259f0 to your computer and use it in GitHub Desktop.
Ubuntu + Zsh + Oh My Zsh + Powerlevel10k = Sliiiiiiiiiiiiick

Based on: https://gist.github.com/kevin-smets/8568070

This gist outlines the steps needed to setup zsh, ohmyzsh and the powerlevel10k theme, available for anyone to follow.

  1. Setup required dependencies

    # update packages
    sudo apt update
    
    # install required packages
    sudo apt install zsh git curl -y
    
    # verify zsh installation
    zsh --version
    
    # Set the default shell to zsh
    sudo chsh -s $(which zsh) $(whoami)
    
    # Install oh-my-zsh: https://ohmyz.sh
    sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    
    # Install Powerlevel10k: https://github.com/romkatv/powerlevel10k
    git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
    
  2. logout of your user session and log back in, or restart your system

  3. Set oh-my-zsh theme to Powerlevel10k by setting the following in your ~/.zshrc.

    ZSH_THEME="powerlevel10k/powerlevel10k"
  4. Setup the recommended font for powerlevel 10k:

    1. Install the recommended font: https://github.com/romkatv/powerlevel10k#manual-font-installation
    2. Setup your terminal to use this installed font
  5. Open a new terminal shell. You should now see a prompt for the Powerlevel10k configuration wizard. Simply follow the on-screen instructions.

Enjoy!

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