An optimized dotfiles configuration for macOS with Zsh, Oh My Zsh, and modern CLI tools.
- Zsh configuration with Oh My Zsh and Spaceship theme
- Performance optimized with lazy loading and careful plugin selection
- Modern CLI tools replacing standard Unix utilities with faster, more user-friendly alternatives
- Sensible macOS defaults for better user experience
- Development-focused with Git aliases, Node.js support, and editor configuration
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install Spaceship theme
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"git clone https://github.com/yourusername/dotfiles.git ~/dotfiles
cd ~/dotfiles./brew.sh./mac-defaults.sh# Backup existing files
cp ~/.zshrc ~/.zshrc.backup 2>/dev/null || true
cp ~/.zsh_aliases ~/.zsh_aliases.backup 2>/dev/null || true
# Link new configuration
ln -sf ~/dotfiles/.zshrc ~/.zshrc
ln -sf ~/dotfiles/.zsh_aliases ~/.zsh_aliases
# Restart your terminal or run:
source ~/.zshrc- Spaceship theme for a beautiful, informative prompt
- Optimized plugins for Git, fuzzy finding, autosuggestions, and more
- Performance tuning with compinit caching and lazy NVM loading
- Smart history with deduplication and sharing between sessions
- Core development tools (Git, Node.js, Python, Java)
- Useful utilities (
tree,htop,fzf,jq) - Development tools (
ghfor GitHub,tigfor Git browsing) - System essentials and libraries
- Directory navigation shortcuts (
cl,..,...,cd..) - List commands (
ll,lllfor time-sorted listing) - Git workflow aliases (
gs,ga,gc, etc.) - System utilities and network commands
- Safety nets for destructive commands
- Finder optimizations
- Developer-friendly defaults
- Security and privacy improvements
- Performance enhancements
Feel free to modify any configuration files to match your preferences:
- Editor: Change
EDITORin.zshrc(currently set to VS Code) - Theme: Modify Spaceship theme settings
- Plugins: Add/remove Oh My Zsh plugins as needed
- Aliases: Customize
.zsh_aliasesfor your workflow
# Update Homebrew packages
brew update && brew upgrade && brew cleanup
# Update Oh My Zsh
omz update
# Update plugins manually or use Oh My Zsh's update systemIf you experience slow shell startup:
- Check which plugins are taking time with
time zsh -c exit - Consider removing unused plugins
- Ensure NVM lazy loading is working properly
Feel free to suggest improvements or submit pull requests!