Hey there tech enthusiasts! Today, let’s dive into the world of terminal customization assistance, because who said coding can’t be both powerful and visually stunning? As a Senior Tech Lead, I’ve curated a ZSH setup that not only boosts your productivity but also adds a touch of aesthetic flair. Let’s get started!
Step 1: Installing ZSH
Step 1: Installing ZSH on Any System
First things first, let’s harness the power of ZSH on your system. Regardless of your operating system, open your terminal and execute the following commands:
For Debian/Ubuntu-based systems:
sudo apt update && sudo apt install -qy zsh
For Red Hat/Fedora-based systems:
sudo dnf install zsh
For macOS using Homebrew:
brew install zsh
For other systems or package managers:
Visit the official ZSH installation guide for instructions tailored to your system: ZSH Installation Guide
Now, you’re all set to level up your terminal experience!
Step 2: Supercharge with Plugins
ZSH Autosuggestions
This plugin enhances your command-line interface by suggesting commands as you type, making your ZSH experience even more intuitive and efficient. Visit this Github Repo zsh-autosuggestions on GitHub. Use this following command to install:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
This command will clone the repository in the custom folder, then you have to edit your ~/.zshrc
file to enable the new plugin:
plugins=(
# other plugins...
zsh-autosuggestions
)
ZSH Syntax Highlighting
Similarly, for zsh-syntax-highlighting, just run:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
And then, update your ~/.zshrc
file:
plugins=(
# other plugins...
zsh-autosuggestions
zsh-syntax-highlighting
)
Bonus Tip: A Theme that rocks
I personally use Terminator as my default terminal, and with a dash of style, it becomes a coding haven. Check out the Catppuccin Terminator Themes for a colorful experience.
If you are using Terminator like me, just copy the configurations below into your ~/.config/terminator/config
file, but don’t worry! Catppuccin is a fantastic community, they provide same themes for different terminals.
[[Catppuccin_Latte]]
cursor_color = "#dc8a78"
background_color = "#eff1f5"
foreground_color = "#4c4f69"
palette = "#5c5f77:#d20f39:#40a02b:#df8e1d:#1e66f5:#ea76cb:#179299:#acb0be:#6c6f85:#d20f39:#40a02b:#df8e1d:#1e66f5:#ea76cb:#179299:#bcc0cc"
background_image = None
[[Catppuccin_Frappe]]
cursor_color = "#f2d5cf"
background_color = "#303446"
foreground_color = "#c6d0f5"
palette = "#51576d:#e78284:#a6d189:#e5c890:#8caaee:#f4b8e4:#81c8be:#b5bfe2:#626880:#e78284:#a6d189:#e5c890:#8caaee:#f4b8e4:#81c8be:#a5adce"
background_image = None
[[Catppuccin_Macchiato]]
cursor_color = "#f4dbd6"
background_color = "#24273a"
foreground_color = "#cad3f5"
palette = "#494d64:#ed8796:#a6da95:#eed49f:#8aadf4:#f5bde6:#8bd5ca:#b8c0e0:#5b6078:#ed8796:#a6da95:#eed49f:#8aadf4:#f5bde6:#8bd5ca:#a5adcb"
background_image = None
[[Catppuccin_Mocha]]
cursor_color = "#f5e0dc"
background_color = "#1e1e2e"
foreground_color = "#cdd6f4"
palette = "#45475a:#f38ba8:#a6e3a1:#f9e2af:#89b4fa:#f5c2e7:#94e2d5:#bac2de:#585b70:#f38ba8:#a6e3a1:#f9e2af:#89b4fa:#f5c2e7:#94e2d5:#a6adc8"
background_image = None
If you prefer a default theme, simply delete [[default]]
and rename Catppuccin_Mocha
to default
.
There you have it! Elevate your coding experience with a personalized ZSH setup and Terminator’s eye-catching themes. Happy coding! 🚀✨
1 Comment