My zsh setup
1. Core Installation
- Installed Zsh: The foundation of your new terminal.
1sudo apt update && sudo apt install zsh -y
- Installed Oh My Zsh: The framework for themes and plugin management.
1sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
2. Plugin Installation (Download & Enable)
You downloaded the logic for smart suggestions and color-coded commands:
- Cloned Autosuggestions:
1git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- Cloned Syntax Highlighting:
1git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- Enabled in
.zshrc: You updated theplugins=(...)line to include both.
1plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
3. Visual Setup (Fonts & Themes)
- Downloaded JetBrains Mono Nerd Font: Necessary to render the Agnoster theme symbols properly.
1# Create the local font directory if it doesn't exist
2mkdir -p ~/.local/share/fonts
3
4# Download the JetBrains Mono Nerd Font (Regular)
5curl -fLO https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/JetBrainsMono.zip
6
7# Unzip it (you might need to install unzip: sudo apt install unzip)
8unzip JetBrainsMono.zip -d ~/.local/share/fonts
9
10# Update the system font cache
11fc-cache -fv
- Set System Terminal Font: Manually selected the Nerd Font in Terminal Preferences to fix broken Unicode characters.
4. History Migration
- Merged Bash History: Copied your old commands into the new Zsh history file so you don't start from zero.
1cat ~/.bash_history >> ~/.zsh_history
- Reloaded History: Forced Zsh to recognize the appended lines.
1fc -R ~/.zsh_history
5. Final Configuration
- Default Shell: Set Zsh as your primary shell.
1chsh -s $(which zsh)
comments powered by Disqus