A modern, minimal, and powerful
.zshrc
for Linux users who want speed, productivity, and style.
Welcome to the ultimate Zsh configuration! This repo brings you a battle-tested, feature-rich .zshrc
designed for Ubuntu and adaptable to any Linux distribution. Enjoy blazing-fast completions, beautiful prompts, smart aliases, and a next-level system update function—all in a single file.
- Lightning-Fast Completions: Optimized for Zsh 5.9+ with robust tab completion and history search.
- Smart Aliases & Functions: Save keystrokes with enhanced
ls
,grep
,mkcd
,extract
, and more. - One-Command System Update: The
update
function upgrades your system, dev tools, and language packages—intelligently and safely. - Plugin-Ready: Works out-of-the-box with Oh My Zsh, zoxide, starship, eza, bat, fd, and more.
- Persistent, Clean History: Never lose your command history, with deduplication and XDG support.
- Beautiful Prompt: Customizable, minimal, and compatible with Starship.
- Cross-Platform: Built for Ubuntu, but easily portable to other distros.
git clone https://github.com/bernardopg/zshrc-config.git
cp zshrc-config/.zshrc ~/.zshrc
source ~/.zshrc
- System Update Function: Run
update
for a full system upgrade (APT, Snap, Flatpak, dev tools, language managers, and more). Includes advanced options, logging, and error handling. - Modern Aliases: Enhanced
ls
,ll
,la
,grep
, and utilities for daily productivity. - Handy Functions:
mkcd
,extract
,killport
,bk
,ff
, and more. - Plugin Support: Seamless integration with Oh My Zsh, zoxide, starship, eza, bat, fd, and others.
- Persistent History: XDG-compliant, deduplicated, and shared across sessions.
- Minimal, Fast, and Clean: No bloat, no unnecessary plugins—just what you need.
update
— Run a full system update (seeupdate --help
for options)ls
,ll
,la
— Enhanced directory listingsmkcd <dir>
— Create and enter a directoryextract <file>
— Extract any archive formatkillport <port>
— Kill process on a given portbk <file>
— Quick file backupff <pattern>
— Find files by pattern
Fork, adapt, and send your pull requests! Suggestions and improvements are always welcome.
MIT License. Use, modify, and share freely.
-
Clone this repository:
git clone https://github.com/bernardopg/zshrc-config.git
-
Copy the
.zshrc
to your home directory:cp zshrc-config/.zshrc ~/.zshrc
-
Reload your Zsh configuration:
source ~/.zshrc
- System Update Function: Run
update
for comprehensive system updates - Modern Aliases: Enhanced ls, grep, and utility commands
- History Management: Persistent history with deduplication
- Completion: Fast and robust tab completion
- Path Management: Automatic path setup for local binaries
- Zsh 5.9+
- Ubuntu (or compatible Linux distribution)
- Optional: Oh My Zsh, zoxide, starship, eza, bat, fd
After installation, you can use various aliases and functions:
update
: Run system updatesls
/ll
/la
: Enhanced directory listinggrep
: Colored grep outputmkcd <dir>
: Create and cd into directoryextract <file>
: Extract various archive formats
Feel free to fork and adapt this configuration to your needs. Pull requests are welcome!
This configuration is provided as-is for personal use. Modify and distribute freely.