Skip to content

Instantly share code, notes, and snippets.

@cristian-aldea
Last active May 19, 2024 19:27
Show Gist options
  • Save cristian-aldea/c8f91187de922303fa10c6e5fd85e324 to your computer and use it in GitHub Desktop.
Save cristian-aldea/c8f91187de922303fa10c6e5fd85e324 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!

@satotory
Copy link

satotory commented Oct 4, 2023

thank you for this instruction

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