Customize iTerm2, using oh-my-zsh and powerlevel10k.
Brew is a Package Manager for macOS. More info here: https://brew.sh/fr/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
More info here: https://iterm2.com/
brew install iterm2
Download a theme, you can use one of these websites:
Then open the .itermcolors file you downloaded. The color settings will be imported into iTerm2. Apply it in iTerm2 through iTerm2 → settings → profiles → colors → colors presets.
Oh My Zsh is a framework for managing your Zsh configuration. More info here: https://github.com/robbyrussell/oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Powerlevel10k is a theme for Zsh. More info here: https://github.com/romkatv/powerlevel10k
brew install powerlevel10k
echo "source $(brew --prefix)/share/powerlevel10k/powerlevel10k.zsh-theme" >>~/.zshrc
Restart iTerm2 and proceed with the instructions to set powerlevel10k.
List all the plugins from ohmysh:
ls ~/.oh-my-zsh/plugins/
Enable a plugin by adding its name to the plugins array inside ~/.zshrc.
Example:
plugins=(rails git ruby)
You can also use plugins from the community, for example some of the most famous are zsh-autosuggestions and zsh-syntax-highlighting.
- Clone the repos
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- Add the plugins to the list of plugins inside
~/.zshrc:
plugins=(# other plugins... zsh-autosuggestions zsh-syntax-highlighting)