Terminal Beautification
Installing Oh My Zsh
| Method | Command |
|---|---|
| curl | sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
| wget | sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
| fetch | sh -c "$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
Installing Powerlevel10k
- Install Recommended Fonts
Double-click each file and then click "Install". This will make the MesloLGS NF font available to all applications on your system.
Apple Terminal: Go to Terminal → Preferences → Profiles → Text, click on Change under Font and select the MesloLGS NF family.
- Install Powerlevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k"Open your ~/.zshrc file, locate the line that sets ZSH_THEME, and change its value to "powerlevel10k/powerlevel10k".
Themes
Installing Syntax Highlighting Plugin
This is an Oh My Zsh plugin.
cd ~/.oh-my-zsh/custom/plugins/
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
vi ~/.zshrcNow open the ~/.zshrc file for editing. Locate the plugins section—it should already include git. Add the syntax highlighting plugin as follows:
...
plugins=(
git
zsh-syntax-highlighting
)
...Make sure that zsh-syntax-highlighting is the last plugin in the list.
Then, add the following line at the end of the file:
source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zshPress ESC to exit insert mode, then type :wq to save and exit vi.
Execute the following command to apply the changes:
source ~/.zshrcOptional: Command Auto-completion
Similarly to syntax highlighting, this is another Zsh plugin called zsh-autosuggestions used for command suggestions and auto-completion.
cd ~/.oh-my-zsh/custom/plugins/
git clone https://github.com/zsh-users/zsh-autosuggestions
vi ~/.zshrcLocate the plugins section and add this plugin:
plugins=(
git
zsh-syntax-highlighting
zsh-autosuggestions
)