Skip to content

Instantly share code, notes, and snippets.

@cristian-aldea
Last active October 22, 2024 19:17
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 on Ubuntu, 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.githubusercontent.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. Create a new terminal session to start using zsh.

  3. Use your preferred text editor to set the oh-my-zsh theme to Powerlevel10k 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. Create a new terminal session. 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