# Every Developer Should Set Up Their Terminal Like This

> Most developers slap a theme onto their terminal and call it a day. Here is the complete setup—Ghostty, Zsh, Powerlevel10k, eza, bat, ripgrep, fzf, zoxide, git-delta, and lazygit—that removes daily CLI friction.

- Author: Falak Gala (https://falakgala.dev)
- Canonical URL: https://falakgala.dev/writing/every-developer-should-set-up-their-terminal-like-this
- Published: 2026-11-23
- Updated: 2026-11-25
- Reading time: 10 min
- Tags: Ghostty, Terminal, Zsh, CLI, Developer Experience

---



Most developers treat their terminal like a rental car. They install a color theme, bump the font size once, and live with washed-out contrast, walls of unformatted `ls` gray text, slow `grep` scans across `node_modules`, and `cd ../../..` guesswork for years.

When you spend hours every day jumping between repositories, reviewing diffs, and running multiple AI coding agents side by side, fixing **only** the terminal emulator leaves half the friction on the table.

My terminal setup works because every layer reinforces the next: **Ghostty** handles GPU rendering, typography, and readability; **Zsh + Powerlevel10k*&#x2A; keeps prompt startup instant and catches typos before execution; and modern Rust/Go CLI tools (&#x2A;*`eza`*&#x2A;, &#x2A;*`bat`*&#x2A;, &#x2A;*`ripgrep`*&#x2A;, &#x2A;*`fzf`*&#x2A;, &#x2A;*`zoxide`*&#x2A;, &#x2A;*`git-delta`*&#x2A;, and &#x2A;*`lazygit`**) replace 40-year-old UNIX defaults.

Here is the complete stack I run daily on macOS and why every piece earns its spot.

| Layer                   | Tools                                       | Replaces                            | Core Win                                                                |
| :---------------------- | :------------------------------------------ | :---------------------------------- | :---------------------------------------------------------------------- |
| **Terminal Emulator**   | Ghostty + JetBrains Mono                    | Default Terminal / Electron shells  | Crisp P3 rendering, contrast guardrails, zero-lag splits & native tabs  |
| **Shell & Prompt**      | Zsh + Oh My Zsh + Powerlevel10k             | Plain slow prompts                  | Instant prompt, command history autosuggestions, syntax checks          |
| **Files & Reading**     | `eza` + `bat` + `glow`                      | `ls`, `tree`, `cat`, raw Markdown   | Git status columns, syntax-highlighted paging, tree maps                |
| **Search & Navigation** | `ripgrep` + `fzf` + `zoxide`                | `grep`, `find`, `cd ../../`         | Skips `.next` & `node_modules`, live previews, frecency directory jumps |
| **Git & Sessions**      | `lazygit` + `git-delta` + `tmux` + `neovim` | Raw `git diff` & detached SSH chaos | Interactive commit/hunk staging, clean diffs, mouse-enabled panes       |

***

## Layer 1: Tune Ghostty for Readability First [#layer-1-tune-ghostty-for-readability-first]

Transparent terminals look great in screenshots and turn completely unreadable the second a white browser window sits behind them. Before touching shell aliases, lock in Ghostty so logs and diffs stay crisp at midnight or in bright daylight.

<Figure src="/writing/terminal-setup/ghostty-config-annotated.png" alt="Annotated Ghostty configuration showing Catppuccin Mocha with #171717 background, typography tweaks, cursor settings, and macOS keybindings" caption="The four parts of my Ghostty config: blur contrast guardrails, Retina typography, cursor/clipboard hygiene, and macOS ergonomics." />

### 1. Transparency with Readability Guardrails [#1-transparency-with-readability-guardrails]

Instead of giving up on blur and translucency, pair a neutral dark base with three guardrails Ghostty ships natively:

```ini
theme = "Catppuccin Mocha"
background = #171717
foreground = #C5C8C6

background-opacity = 0.9
background-blur-radius = 12

window-colorspace = display-p3
minimum-contrast = 3
alpha-blending = linear-corrected
```

* **`background = #171717` over Catppuccin Mocha:** Keeps Catppuccin's soft syntax palette while dropping the backdrop into a neutral charcoal that blends cleanly with dark editors.
* **`background-opacity = 0.9` + `background-blur-radius = 12`:** Preserves spatial awareness behind the window without turning code into soup.
* **`minimum-contrast = 3`:** Automatically boosts foreground luminance whenever background contrast drops too low—comments never vanish into bright windows behind Ghostty.
* **`alpha-blending = linear-corrected` + `window-colorspace = display-p3`:** Prevents muddy text anti-aliasing on Retina displays and keeps colors accurate on Apple P3 panels.

### 2. Crisp Retina Typography [#2-crisp-retina-typography]

macOS often renders standard monospace weights either too hairline or too chunky at larger font sizes:

```ini
font-family = JetBrains Mono Light
font-family-bold = JetBrains Mono Bold
font-family-italic = JetBrains Mono Italic
font-family-bold-italic = JetBrains Mono Bold Italic

font-size = 16
font-thicken = true
adjust-cell-width = -4%
```

Pairing **JetBrains Mono Light** (`brew install --cask font-jetbrains-mono`) with `font-thicken = true` keeps strokes razor-sharp without feeling heavy at `16px`. Tightening `adjust-cell-width = -4%` fits more diff and stack-trace context per line without cramping glyphs.

### 3. Cursor, Clipboard, and macOS Ergonomics [#3-cursor-clipboard-and-macos-ergonomics]

When logs stream at 400 lines a second or you highlight URLs repeatedly, cursor contrast and copy-paste behavior matter more than eye candy:

```ini
# Cursor
cursor-style = bar
cursor-color = cell-foreground
cursor-opacity = 0.9
adjust-cursor-thickness = 2

# Selection and clipboard
copy-on-select = clipboard
selection-clear-on-typing = true
clipboard-trim-trailing-spaces = true
mouse-hide-while-typing = false
link-url = true

# Window, macOS behavior, and keybindings
macos-option-as-alt = true
macos-non-native-fullscreen = true
macos-titlebar-style = tabs
window-padding-x = 12
window-padding-y = 10
window-width = 142
window-height = 41
window-save-state = always
confirm-close-surface = false
term = xterm-256color

keybind = ctrl+f=start_search
keybind = super+f=toggle_fullscreen
```

Why those details pay off:

* **`copy-on-select = clipboard` + `clipboard-trim-trailing-spaces = true`:** Highlight a token or URL and it lands straight on the macOS clipboard cleanly—no `Cmd+C`, no trailing spaces.
* **`macos-option-as-alt = true`:** Makes `Alt+B`, `Alt+F`, Vim motions, and TUI shortcuts work natively instead of typing special characters.
* **`macos-titlebar-style = tabs` + `macos-non-native-fullscreen = true`:*&#x2A; Instant fullscreen transitions without macOS Space animations. &#x2A;(Tradeoff: non-native fullscreen removes the titlebar that `macos-titlebar-style = tabs` relies on, so entering fullscreen with multiple tabs open detaches the focused tab into its own window and leaves the other tabs behind. Drop `macos-non-native-fullscreen = true` if you prefer multi-tab native fullscreen.)*
* **`term = xterm-256color`:** Prevents SSH targets without `xterm-ghostty` terminfo entries from breaking line editing.

***

## Layer 2: Zsh, Powerlevel10k & Real-Time Guardrails [#layer-2-zsh-powerlevel10k--real-time-guardrails]

A slow shell steals focus every time you open a split pane. The goal for `~/.zshrc` is simple: **render the prompt immediately**, **autocomplete repeated commands cleanly**, and **flag syntax errors before you press Enter**.

```zsh
# Enable Powerlevel10k instant prompt cleanly at the top of ~/.zshrc
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
  source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi

export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"

plugins=(git)
source $ZSH/oh-my-zsh.sh

source ~/.zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
```

Three small choices here save hundreds of micro-stumbles a week:

* **Powerlevel10k Instant Prompt (`POWERLEVEL9K_MODE=ascii`):** New tabs open interactively before slow version checks finish—and using ASCII mode avoids broken font glyphs over SSH or containers.
* **`zsh-autosuggestions`:** Greys out your previous matching command inline as you type; pressing right-arrow accepts long test or deploy commands in one keystroke.
* **`zsh-syntax-highlighting`:** Lights valid binaries up in green and flags typos or unclosed quotes in red *while* you are typing.

***

## Layer 3: Replace `ls`, `cat`, `tree`, `grep`, `find`, and `cd` [#layer-3-replace-ls-cat-tree-grep-find-and-cd]

Once the terminal and shell are fast, upgrade the core UNIX verbs your fingers type automatically every two minutes.

<Figure src="/writing/terminal-setup/eza-bat-annotated.png" alt="Ghostty terminal running eza with Git status columns above bat syntax-highlighted file output" caption="eza replaces ls with readable sizes and Git state, while bat replaces cat with file headers, line gutters, and syntax highlighting matching Catppuccin." />

### 1. Better File Listings & Previews (`eza` + `bat`) [#1-better-file-listings--previews-eza--bat]

Plain `ls` hides directory grouping and Git status, and plain `cat` dumps monochrome text into scrollback. Installing `eza` and `bat` fixes both immediately—and aliasing `ls`, `ll`, `la`, and `lt` means you never have to break existing muscle memory:

```zsh
# eza (modern ls replacement)
if command -v eza >/dev/null 2>&1; then
  alias ls='eza --group-directories-first'
  alias ll='eza -l --git --group-directories-first'
  alias la='eza -la --git --group-directories-first'
  alias lt='eza --tree'

  ltd() {
    eza --tree --level=${1:-2}
  }

  alias l1='eza -1'
  alias lsize='eza -l --sort=size --reverse'
  alias ltime='eza -l --sort=modified'
  alias ld='eza -D'
  alias lf='eza -f'
fi
```

Add `glow` for terminal-native Markdown rendering when inspecting repo `README.md` files, and `jq` / `yq` whenever API responses or CI configs need quick slicing.

<Figure src="/writing/terminal-setup/rg-tree-annotated.png" alt="Ghostty showing ripgrep grouped smart-case search output above an eza tree view of blog MDX files" caption="ripgrep paired with a global ignore config skips build folders automatically, and ltd renders depth-limited project trees." />

### 2. Zero-Noise Code Search & Jumps (`ripgrep` + `fzf` + `zoxide`) [#2-zero-noise-code-search--jumps-ripgrep--fzf--zoxide]

The fastest `grep` replacement still wastes your time if you keep passing `--exclude-dir=node_modules` by hand. Put your defaults in `~/.config/ripgrep/config` once and point `RIPGREP_CONFIG_PATH` at it:

```ini
--hidden
--follow
--smart-case
--glob=!**/.git/*
--glob=!**/node_modules/*
--glob=!**/dist/*
--glob=!**/.next/*
```

Then combine &#x2A;*`ripgrep`*&#x2A; with &#x2A;*`fzf`** in one lightweight shell helper—so searching for a symbol gives you live interactive filtering with a preview line right inside Ghostty:

```zsh
# fzf + ripgrep interactive search
fzf_rg() {
  rg --line-number --no-heading "$1" |
    fzf --delimiter : \
        --preview 'sed -n {2}p {1}' \
        --preview-window=down:3:wrap
}

alias ff='fzf'

# zoxide (smart cd replacement)
eval "$(zoxide init zsh)"
```

Pair that with &#x2A;*`zoxide`** (`z proj` jumps straight to your most frequently used project directory instead of typing full paths) and navigation stops feeling like directory traversal chores.

***

## Layer 4: Git Workflows & Persistent Sessions (`lazygit`, `git-delta`, `tmux`, `neovim`) [#layer-4-git-workflows--persistent-sessions-lazygit-git-delta-tmux-neovim]

Reading raw `git log --stat` or typing repetitive `git rebase -i` commands slows down code review—especially when juggling multiple PR branches or reviewing agent-generated changes.

<Figure src="/writing/terminal-setup/lazygit-annotated.png" alt="Annotated lazygit session inside Ghostty showing commit reflog graph, live diff patch pane, and single-key rebase shortcuts" caption="lazygit inside Ghostty turns commit history, hunk staging, inline patches, and interactive rebases into single-key navigation." />

Here is how the rest of my Git and session layer fits together:

* **`lazygit` + short `gs` / `gl` aliases:** In `~/.zshrc`, `gs` (`git status`) and `gl` (`command git log --oneline --graph --decorate --no-color`) handle 5-second checks, while `lazygit` handles staging partial hunks, inspecting full commit diffs, and rebasing cleanly.
* **`git-delta`:** Plugs into `git diff` so terminal diffs get syntax highlighting and crisp line alignment instead of flat red/green patches.
* **`tmux` (`set -g mouse on`) + `neovim`:** Keeps long-running processes, dev servers, and multi-agent sessions alive and scrollable even when detaching or switching panes.

***

## Install the Complete Stack & Copy Configs [#install-the-complete-stack--copy-configs]

If you are setting up a fresh Mac, start with Homebrew for the terminal, font, and core CLI tools:

```bash
brew install --cask ghostty font-jetbrains-mono
brew install bat eza zoxide ripgrep fzf git-delta lazygit tmux neovim glow jq
```

### Complete `~/.config/ghostty/config` [#complete-configghosttyconfig]

Save this file to `~/.config/ghostty/config` and reload with `Cmd+Shift+,`:

```ini
theme = "Catppuccin Mocha"
background = #171717
foreground = #C5C8C6
background-opacity = 0.9
background-blur-radius = 12
window-colorspace = display-p3
minimum-contrast = 3
alpha-blending = linear-corrected

# Custom ANSI palette tuned for dark backgrounds
palette = 0=#282a2e
palette = 1=#D74E6F
palette = 2=#31BB71
palette = 3=#D3E561
palette = 4=#8056FF
palette = 5=#ED61D7
palette = 6=#04D7D7
palette = 7=#C5C8C6
palette = 8=#4B4B4B
palette = 9=#FE5F86
palette = 10=#00D787
palette = 11=#EBFF71
palette = 12=#8F69FF
palette = 13=#FF7AEA
palette = 14=#00FEFE
palette = 15=#FFFFFF

# Typography
font-family = JetBrains Mono Light
font-family-bold = JetBrains Mono Bold
font-family-italic = JetBrains Mono Italic
font-family-bold-italic = JetBrains Mono Bold Italic
font-size = 16
font-thicken = true
adjust-cell-width = -4%

# Cursor
cursor-style = bar
cursor-color = cell-foreground
cursor-opacity = 0.9
adjust-cursor-thickness = 2

# Selection and clipboard
copy-on-select = clipboard
selection-clear-on-typing = true
clipboard-trim-trailing-spaces = true
mouse-hide-while-typing = false
link-url = true

# Window, macOS behavior, and keybindings
macos-option-as-alt = true
macos-non-native-fullscreen = true
macos-titlebar-style = tabs
window-padding-x = 12
window-padding-y = 10
window-width = 142
window-height = 41
window-save-state = always
confirm-close-surface = false
term = xterm-256color

keybind = ctrl+f=start_search
keybind = super+f=toggle_fullscreen
```

### Core `~/.zshrc` Workflow Snippet [#core-zshrc-workflow-snippet]

Drop these aliases and helpers into `~/.zshrc` alongside Oh My Zsh, Powerlevel10k, `zsh-autosuggestions`, and `zsh-syntax-highlighting`:

```zsh
# Point ripgrep at global ignore/smart-case config
export RIPGREP_CONFIG_PATH="$HOME/.config/ripgrep/config"

# eza aliases
if command -v eza >/dev/null 2>&1; then
  alias ls='eza --group-directories-first'
  alias ll='eza -l --git --group-directories-first'
  alias la='eza -la --git --group-directories-first'
  alias lt='eza --tree'
  ltd() { eza --tree --level=${1:-2}; }
  alias l1='eza -1'
  alias lsize='eza -l --sort=size --reverse'
  alias ltime='eza -l --sort=modified'
  alias ld='eza -D'
  alias lf='eza -f'
fi

# ripgrep + fzf interactive jump helper
fzf_rg() {
  rg --line-number --no-heading "$1" |
    fzf --delimiter : \
        --preview 'sed -n {2}p {1}' \
        --preview-window=down:3:wrap
}

alias ff='fzf'
alias gs="git status"
alias gl="command git log --oneline --graph --decorate --no-color"

# zoxide smart cd
eval "$(zoxide init zsh)"
```

Once Ghostty rendering, Zsh instant prompt, `eza`/`bat`/`ripgrep`/`fzf`/`zoxide`, and `lazygit` click together, opening a stock terminal feels immediately broken by comparison.

Pair this terminal stack with [the Mac dev and AI workflow apps I run daily](/writing/mac-apps-for-developers-and-ai-workflows), [how I reclaim disk space with Mole and AlDente](/writing/reclaim-mac-storage-and-battery-mole-aldente), and [how I keep my Mac awake while AI agents code](/writing/keep-your-mac-awake-while-ai-agents-code).

