Skip to content

Instantly share code, notes, and snippets.

@regenrek
Last active October 7, 2024 13:33
Show Gist options
  • Save regenrek/1affc691b4671626f8c3e41320b26e72 to your computer and use it in GitHub Desktop.
Save regenrek/1affc691b4671626f8c3e41320b26e72 to your computer and use it in GitHub Desktop.
Installs p10k + zsh for iterm2
# Install iTerm2 (if not installed manually)
# Download from: https://iterm2.com/downloads.html
# Install zsh (if not installed)
brew install zsh
# Make zsh the default shell
chsh -s $(which zsh)
# Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install Powerlevel10k theme
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# Set Powerlevel10k as the default theme in .zshrc
sed -i '' 's/ZSH_THEME=".*"/ZSH_THEME="powerlevel10k\/powerlevel10k"/g' ~/.zshrc
# Apply changes
source ~/.zshrc
# Launch Powerlevel10k configuration
p10k configure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment