Yes, you can customize the Mac Terminal, and the most impactful changes are changing the theme (colors and font), adding a useful prompt, and installing a modern shell like Zsh with Oh My Zsh. This guide walks you through the exact steps for each, from basic appearance tweaks to command-line productivity upgrades, so you can make Terminal both look good and work better.
Why Customize Terminal at All
The default Terminal window—white background, black text, a bare $ prompt—works fine, but it gives you no visual feedback. Customizing it does two things: it reduces eye strain with a darker theme, and it shows useful information right in the prompt, like the current folder and Git branch. For anyone who spends hours in the command line, those small changes add up to a faster, more pleasant workflow.
Start With the Built-in Profiles
Before installing anything, try the profiles Apple already ships. Open Terminal, then go to Settings (Cmd + ,) and click the Profiles tab. You’ll see a sidebar with options like Basic, Grass, Ocean, Pro, and Red Sands. Click one to preview it live in the window behind the settings panel.
- Pro is a dark theme with good contrast, a solid default.
- Homebrew appears only if you’ve installed Homebrew; it’s a clean dark theme.
- You can duplicate any profile (click the gear icon) and tweak it without messing up the original.
To change the font, select a profile, click Text, then Font. Popular choices are Menlo (default), Monaco, or JetBrains Mono if you install it. A good monospaced font makes columns and code align properly.
Make Your Prompt Show Useful Info
The prompt is the text before each command. By default it’s just YourName@YourMac. You can change it to show the current directory, the time, or even the Git branch. On modern macOS, the shell is Zsh, and its prompt is controlled by the PS1 variable.
To see your current prompt, run:
echo $PS1
To make a simple, useful prompt, edit your ~/.zshrc file:
nano ~/.zshrc
Add this line:
PS1="%n@%m %~ %# "
Here’s what each piece means:
%n– your username%m– your Mac’s hostname%~– the current directory, with~for your home folder%#– a%for normal users,#for root
Save with Ctrl+O, Enter, then Ctrl+X. Run source ~/.zshrc to apply it immediately. You’ll now see user@mac ~ % which tells you where you are at a glance.
Install Oh My Zsh for Instant Upgrades
Oh My Zsh is a framework that manages your Zsh configuration. It gives you hundreds of themes and plugins without hand-writing complex code. To install it, you need Git (usually preinstalled) and run:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
This downloads and installs the framework, then asks you to make Zsh your default shell if it isn’t already. After installation, your prompt will change to the default robbyrussell theme, which shows the Git branch in the prompt.
To change the theme, edit ~/.zshrc again and find the line:
ZSH_THEME="robbyrussell"
Replace it with something like ZSH_THEME="agnoster" or ZSH_THEME="powerlevel10k" (the latter requires installing the powerlevel10k theme separately). After saving, run source ~/.zshrc. The agnoster theme shows a fancy prompt with arrows and Git info, but it needs a Powerline font to display correctly. You can install those fonts via Homebrew: brew install font-meslo-for-powerline.
Add Plugins for Productivity
Oh My Zsh plugins are small scripts that add shortcuts and auto-completions. To enable them, edit ~/.zshrc and find the plugins=(git) line. Add more inside the parentheses, separated by spaces:
plugins=(git brew macos docker)
Some genuinely useful ones:
- git – adds aliases like
gstforgit statusand shows branch info. - brew – adds short commands for Homebrew, like
bslforbrew services list. - macos – adds
tabto open a new tab,cdfto cd into the Finder’s current folder. - z – lets you jump to a recently visited folder by typing
z foldername.
After editing, run source ~/.zshrc. If a plugin doesn’t exist, Zsh will warn you but still load the rest.
Change Window Transparency and Cursor
In Terminal’s Settings > Profiles, select your profile and click the Window tab. You can adjust the background opacity and blur. A slightly transparent window looks nice, but too much makes text hard to read. Also, under the Text tab, you can change the cursor style (block, underline, or bar) and whether it blinks. Many developers prefer a solid block cursor for easier placement.
To change the default shell (if you’re still on Bash), go to Settings > General > Shells open with and select Command (complete path), then enter /bin/zsh. This ensures every new window uses Zsh with your customizations.
Common Mistakes and How to Fix Them
The most common issue after editing ~/.zshrc is a syntax error that prevents the shell from starting. If that happens, Terminal may open with a default prompt but no customizations. To fix it, run nano ~/.zshrc (if you can type) and check for missing quotes or spaces. If the shell won’t start at all, open Terminal’s Settings > General, set the shell to /bin/zsh with no arguments, and edit the file from there.
Another mistake is mixing Bash and Zsh syntax. For example, export PS1="\w $" works in Bash but not in Zsh. Stick to Zsh’s % escapes. Also, if you install a theme that shows boxes or weird characters, you’re missing a Powerline font. Install one and set it in Terminal’s Text > Font.
Finally, if Oh My Zsh slows down your shell startup, it’s usually because of too many plugins. Disable the ones you don’t use. You can check startup time with time zsh -i -c exit.
Alternatives: iTerm2 and Alacritty
Terminal is not the only option. iTerm2 is a free, more feature-rich terminal that many developers prefer. It offers split panes, a searchable command history, and better profile management. To customize iTerm2, you go to Preferences > Profiles > Colors and pick from built-in presets or import a color scheme from sites like iTerm2-Color-Schemes. The setup is similar to Terminal’s profiles but with more options.
Alacritty is a GPU-accelerated terminal that uses a YAML config file instead of a GUI. It’s faster but less beginner-friendly. If you just want a nicer look without learning a new app, stick with Terminal. If you want power features, iTerm2 is the logical step.
Frequently Asked Questions
Do I need Homebrew to customize Terminal?
No. You can change colors, fonts, and the prompt without installing anything. Homebrew is only needed for third-party tools like powerlevel10k or additional fonts. The built-in profiles and PS1 variable are enough for most people.
Why does my prompt show a weird character like a box?
That means your current font doesn’t include the glyph the theme uses. Install a Powerline font (e.g., Meslo for Powerline) and set it in Terminal’s Text > Font. If you’re using Oh My Zsh’s agnoster theme, this is almost always the cause.
How do I reset Terminal to the default settings?
Open Terminal’s Settings, go to Profiles, select the Basic profile, and click the gear icon then Set as Default. This makes new windows use the default look. To remove Oh My Zsh, run uninstall_oh_my_zsh in the terminal.
Can I use the same customization on a remote server?
Yes, but only the prompt and shell settings, not the Terminal window colors. The window colors are local to your Mac. To get the same prompt on a server, copy your ~/.zshrc and install Oh My Zsh there, but be careful: some plugins may not exist on Linux. Stick to basic ones like git.
Is it safe to edit ~/.zshrc?
Yes, as long as you make a backup first. Run cp ~/.zshrc ~/.zshrc.backup before editing. If something breaks, you can restore it with cp ~/.zshrc.backup ~/.zshrc. The worst that happens is the shell won’t start, but you can always open Terminal with a clean shell from Settings.
Why does my Terminal still show bash instead of zsh?
macOS Catalina and later use Zsh as the default, but if you upgraded from an older system, your account might still be set to Bash. Run chsh -s /bin/zsh to change it. You’ll need to log out and back in for it to take effect.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Use Mac More Efficiently: 21 Proven Tips
- Best CPUs for Gaming and Streaming: Encoder Guide
- How to Compare AI Features and Performance in Phones
- Nginx Blocks in CentOS: Config Guide
- Create Google Meet Account: Step-by-Step Guide
- AI Frameworks: How Developers Choose and Ship Them