This script automates the setup of a complete, modern, and beautiful terminal environment on a fresh macOS installation. It installs a curated set of tools and configures them to work together seamlessly for maximum productivity.
The only prerequisite is that you have Homebrew installed. If not, the script will install it for you.
To run the setup, open your terminal and paste the following command:
/bin/zsh -c "$(curl -fsSL https://raw.githubusercontent.com/k-electron/terminal-setup/main/terminal-setup.sh)"This script provides a complete terminal "glow up" by installing and configuring the following components:
- iTerm2: A powerful, modern replacement for the default Terminal.app.
- Oh My Zsh: The industry-standard framework for managing your Zsh configuration.
- Starship: A beautiful, fast, and infinitely customizable prompt. The script includes a custom "transient" prompt configuration.
- Fira Code Nerd Font: A gorgeous monospaced font with programming ligatures and all the necessary icons for the prompt.
- zsh-autosuggestions: Suggests commands as you type based on your history.
- zsh-syntax-highlighting: Provides live syntax highlighting for the commands you're typing.
- zsh-autocomplete: A powerful, IDE-style autocomplete for command flags, arguments, and paths.
- OMZ Plugins: git, brew, docker, docker-compose, and command-not-found are also enabled by default.
- eza: A modern, colorful replacement for ls (aliased to ls).
- bat: A replacement for cat with syntax highlighting and Git integration (aliased to cat).
- zoxide: A smarter cd that remembers your frequently used directories.
- ripgrep (rg): An incredibly fast replacement for grep.
- fzf: A blazing-fast fuzzy finder for files and command history.
- btop: A beautiful and informative resource monitor.
- Atuin: Replaces your default shell history with a searchable, syncable, SQLite-powered database.
- Delta: A beautiful diff viewer that makes git diff and other Git output much more readable.
After the script finishes, you must complete these final manual steps:
- Quit your terminal completely (Cmd+Q).
- Open the new iTerm2 application.
- In iTerm2, go to Preferences > Profiles > Text > Font and select FiraCode Nerd Font.
Your new terminal experience is now ready!