description |
---|
On macOS Big Sur, using iTerm2, oh-my-zsh, nerd-fonts, powerlevel10k, iTerm2-Color-Schemes, and plenty plugins like autojump zsh-autosuggestions zsh-syntax-highlighting |
{% hint style="info" %} GitHub repo: https://github.com/JingGe/101 {% endhint %}
If you like the following iTerm2 style, you are at the right place. I will show you how to get this setup in 10 min.
{% hint style="info" %} sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" {% endhint %}
Reference: https://github.com/ohmyzsh/ohmyzsh
{% hint style="info" %} /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" {% endhint %}
The simplest way to install iTerm2 is to download and unzip it: https://iterm2.com/downloads.html
Clone the repo:
{% hint style="info" %} git clone https://github.com/ryanoasis/nerd-fonts.git {% endhint %}
Switch to the nerd-fonts folder and run:
{% hint style="info" %} ./install.sh {% endhint %}
just clone the repo to the ohmyzsh themes folder:
{% hint style="info" %} git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k {% endhint %}
change the theme to powerlevel10k:
{% hint style="info" %} ZSH_THEME="powerlevel10k/powerlevel10k" {% endhint %}
setup the plugins:
{% hint style="info" %} plugins=(git gitignore autojump wd docker zsh-autosuggestions zsh-syntax-highlighting) {% endhint %}
{% hint style="info" %} brew install autojump {% endhint %}
After visiting directories, use j -s
to check the weights:
Use j <dir>
to jump to a directory with highest weight:
Find more by using:
{% hint style="info" %} j -h
jc -h
jco -h {% endhint %}
{% hint style="info" %} git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions {% endhint %}
{% hint style="info" %} git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting {% endhint %}
Don't forget to call
{% hint style="info" %} source ~/.zshrc {% endhint %}
Now open a new iTerm and follow the wizard to configure the theme, if the wizard is not started automatically, type p10k configure.
Reference: https://github.com/romkatv/powerlevel10k#oh-my-zsh
{% hint style="info" %}
git clone
https://github.com/mbadolato/iTerm2-Color-Schemes.git
``
{% endhint %}
Go to iTerm->Preferences->Profiles->Colors, you can import color schemes from iTerm2-Color-Schemes/scheme. I personally recommend "Chester".
Go to iTerm->Preferences->Profiles->Text, you can change the font