Foreword
Read little, type a lot. This book teaches you the Mac terminal the way senior engineers work with it: fast, reproducible and without a mouse. You already know Linux, Kubernetes and Bash. This is about habits, shortcuts and a setup you can bring to any new Mac in an hour.
The training rules
- Type, don’t copy. Every command once by yourself. Only your hand learns shortcuts.
- Compare with Expected. After each drill you’ll find what you should see. If it differs, that’s where the real lesson is.
- Stay in the practice home. All drills run in
~/term-labwith their own zsh configuration. Your real~/.zshrcstays untouched until you deliberately adopt it on Day 13. - Pass the checkpoint. Only move on when the check script shows nothing but ✔.
- Solve the challenge on your own. First the hint, then the solution.
- One habit per day. Take one shortcut from each day into your daily work. Only when it sticks does the next one come.
Structure of each training day
| Section | Purpose |
|---|---|
| Briefing | The essentials in a few bullet points |
| Drills | Commands and keys with expected output |
| Shortcut table | Key, effect, mnemonic |
| Checkpoint | Check script: did everything work? |
| Challenge | A task without instructions |
| Enterprise Note | What’s different at a client or in a team |
The training plan
| Part | Day | Unit |
|---|---|---|
| Training ground | 0 | Brewfile, practice home, practice project, Nerd Font |
| A – Foundation | 1 | Setting up the terminal app: iTerm2 and Ghostty |
| 2 | zsh basics: startup files, options, completion, PATH | |
| 3 | Editing the command line like a pro | |
| 4 | History mastery: ⌃R, fzf, atuin | |
| B – Your own tools | 5 | Aliases and functions |
| 6 | Modern CLI tools: rg, fd, bat, eza, zoxide, jq | |
| 7 | fzf everywhere | |
| 8 | tmux I: sessions, windows, panes, copy mode | |
| 9 | tmux II: project sessions, popups, persistence | |
| C – Code and systems | 10 | Git in the terminal |
| 11 | Neovim basics for terminal people | |
| 12 | SSH and macOS commands | |
| D – Reproducible | 13 | Dotfiles and a new Mac |
| 14 | Projects and platform ergonomics | |
| 15 | Competition: speed drills | |
| Appendix | A | Cheat sheet: all shortcuts |
| B | Final exam |
Plan 45 to 90 minutes for each day. Part A is mandatory. After that you can jump around as needed. Day 8 and Day 9 belong together.
Where the journey goes
This is what a typical senior setup looks like at the end of the book:
┌─ Terminal app (iTerm2 / Ghostty) ─────────────────────────────────┐
│ Nerd Font · Option = Meta · hotkey window · ⌘ shortcuts │
│ ┌─ zsh ───────────────────────────────────────────────────────┐ │
│ │ starship prompt · history (atuin) · fzf · zoxide · aliases │ │
│ │ ┌─ tmux (prefix ⌃a) ─────────────────────────────────────┐ │ │
│ │ │ Session "shop" │ Session "ops" │ │ │
│ │ │ ┌─ nvim ─────┬─ shell ─┐│ ┌─ k9s ────┬─ ssh bastion ─┐ │ │ │
│ │ │ │ Code │ go test ││ │ Cluster │ Logs │ │ │ │
│ │ │ ├────────────┴─────────┤│ ├──────────┴───────────────┤ │ │ │
│ │ │ │ lazygit · rg · fd ││ │ kubectx · jq · btop │ │ │ │
│ │ │ └──────────────────────┘│ └──────────────────────────┘ │ │ │
│ │ └────────────────────────────────────────────────────────┘ │ │
│ └─────────────────────────────────────────────────────────────┘ │
└───────────────────────────────────────────────────────────────────┘
Dotfiles in Git (chezmoi) + Brewfile → new Mac in one hour
Each layer has its own keys. The terminal app responds to ⌘, zsh to ⌃ and ⌥, tmux to the prefix ⌃a. If you keep the layers apart, you always know who is listening.
Key notation
| Symbol | Key | Example |
|---|---|---|
| ⌃ | Control (ctrl) | ⌃R = ctrl and R |
| ⌥ | Option (alt), as Meta in the terminal | ⌥B = one word back |
| ⌘ | Command | ⌘D = split in iTerm2 |
| ⇧ | Shift | ⌘⇧D = horizontal split |
| ⏎ | Return |
⌃X ⌃E means: first ⌃X, then ⌃E. ⌃a | in
tmux means: press the prefix, release, then |.
Tip: Tested with zsh 5.9, tmux 3.8, fzf 0.74, atuin 18 and iTerm2 3.6 on Apple Silicon (macOS 15.6). If an output differs:
man zshzle,tmux list-keysor<tool> --help.
The companion code
All files from this book are publicly available on GitHub: https://github.com/thomaszachmann/mac-terminal-zum-anfassen. Day 0 shows you how to get them.
Let’s go.
Thomas Zachmann, October 2026