This guide will help you set up Warp Terminal on your Macbook with a personalized configuration that includes several useful plugins. Follow the steps below to get started.
First, you need to install a font that supports special icons. You can choose from a variety of fonts at Nerd Fonts. For example, you can download and install "Hack Nerd Font".
Install Oh-My-Zsh using one of the following commands:
Via curl:
sh -c "$(curl -fsSL https://github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"Via wget:
sh -c "$(wget https://github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"Clone the Powerlevel10k repository:
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10kOpen your .zshrc file with a text editor (nvim, nano, etc.) and set the theme:
~/.zshrc
nano .zshrcZSH_THEME="powerlevel10k/powerlevel10k"After making changes to .zshrc, source the file:
source .zshrcA configuration wizard should start automatically. If not, run:
p10k configureClone the Zsh syntax highlighting plugin repository:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlightingClone the Zsh autosuggestions plugin:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestionsEdit your .zshrc file to include these plugins:
plugins=(git zsh-syntax-highlighting zsh-autosuggestions)Source the .zshrc file again:
source .zshrcInstall the colorls plugin using gem:
sudo gem install colorlsIf you encounter error that looks like this:
ERROR: Error installing colorls:
The last version of public_suffix (>= 2.0.2, < 7.0) to support your Ruby & RubyGems was 5.1.1. Try installing it with `gem install public_suffix -v 5.1.1` and then running the current command again
public_suffix requires Ruby version >= 3.0. The current ruby version is 2.6.10.210.Try solving it by updating public_suffix with this command:
sudo gem install public_suffix -v 5.1.1Then re-run the installation of colorls:
sudo gem install colorlsSet an alias for colorls by adding the following line to your .zshrc file:
alias ls='colorls'Source the .zshrc file one last time:
source .zshrcAfter completing these steps, you should have a fully configured Warp Terminal with the best settings and plugins. Enjoy your new setup!