My Terminal Blueprint


Hi!

I don’t know if you’ve been following DHH’s recent rekindled love affair ❤️‍🔥 with the Terminal, but it is such a joy to see a tech thought leader sharing his excitement with multiplexers, Neovim, and Terminal user interfaces!

This, along with many questions I’ve received over the past months asking about my setup, tooling, and general workflow, inspired me to create both a video (coming out today 👀) and a written blueprint that I’m sharing here:

My Terminal Blueprint

Every setup is built with layers and different components, including an emulator, a prompt, tooling, hotkeys, and more. I’ll structure it from the ground up in a way that’s easy to follow and replicate or, better yet, use as a boilerplate to make it your own.

An emulator makes all the difference

A terminal emulator is the native program giving you access to a shell prompt. DHH uses Alacritty, as you can see above. My terminal journey started with the (terrible) MacOS terminal. Then I used the popular iTerm2 for a long time. After that, I spent a year with Alacritty, tried Kitty, and finally fell in love with Wezterm.

Wezterm, to me, has everything I want in an emulator:

  • Fast
  • Minimal looks
  • Renders everything beautifully
  • Easily configurable YAML setup
  • Great documentation

One con is its poor native window management (or lack thereof), which I think most other options also struggle with.

One project to watch is Ghostty by Mitchel Hashimoto (Hashicorp’s founder).

The shell is how things are done

I’m using the popular ZSH, mainly because I started with the even more popular project - oh-my-zsh. It feels like the same relationship developers had when getting into Ruby because of Rails a decade ago…

While I do think Fish has a lot to offer, I haven’t taken the time to properly explore it, so ZSH, coupled with the prompt I love, does everything I need:

The Prompt

I covered my use of Starship in a video last year, and I’ve been LOVING it and have never looked back! Coming from oh-my-zsh, I find Starship faster, leaner, easier to set up and configure, and it does everything I need. It comes with beautifully easy-to-understand docs and is just a sweet completion to my terminal setup.

The Multiplexer

I don’t think Tmux needs an introduction. It’s my terminal Operating System, nothing less! Tmux is my terminal splitter, space manager, and it even lets me know about upcoming calendar meetings. It’s plugged with a session manager I built and tons of other configurations. So, here’s a video covering how I set it up from scratch, and another one covering my session manager!

Tmux, as you may already know, is hosting my primary shell process: Neovim!

The only editor you’ll ever need: Neovim

Vim/Nvim is another tool that needs no introduction. I’ve made so many videos about it that it’s really hard to pick just one, so here’s all of them. There’s too much to be said about the plugins I use and how I set it up, so I’ve decided to create a dedicated video coming out next month.

CLI Tooling is just BETTER

Most of my work that involves API communication, internal commands, managing files and folders, and even code management is done within the terminal. I found many modern alternatives to Unix native commands like ls, cat, dig, tree, grep, and many more. EZA is one great example, making my ls/tree look not only beautiful but also more readable, providing git status options, and even a tree structure to my files!

If I had to pick one tool, there’s a very good chance I’d go with FZF. FZF makes everything accessible via a fuzzy picker. Whether it’s files, folders, command history, bits of code, everything becomes better using FZF. Even my Tmux session manager is built on top of an FZF feature. If you’re even an occasional terminal user, I can’t recommend it enough.

TUIs are all the rage now

Lastly, it’s important to mention the growing field of TUIs - terminal user interfaces. Users are slowly discovering the fun and efficient way to move through a terminal-based application, using Vim motions and native bindings, making everything quicker and better! Notable TUIs I’m using:

  • LazyGit (covered here)
  • K9s - for all my K8s visualization needs
  • LazyDocker (from the LazyGit author)
  • Zellij - essentially a multiplexer, but more funky with some killer features (covered here)

This pretty much sums it up. While there are MANY other tools and bindings I use, not to mention a split keyboard with macros and combos for better control (more on that is coming soon!), these are the basics. These are the tools I can’t live without, that shape the way I interact with the terminal, and through them, with other systems as well.

I hope you found it useful. Please reply with any feedback or questions.

Have a great weekend!

Whenever you’re ready, here’s how I can help you:

ESPRESSO FRIDAYS

Every once in a while I send hand picked things I've learned. Kind of like your filter to the tech internet. No spam, I promise!

Read more from ESPRESSO FRIDAYS

In a world where online privacy is increasingly under threat, and content is being blocked based on geo-location, many of us turn to paid VPNs for help. But what if I told you there's a better way? Paid VPN services promise security and anonymity, but they come with their own set of problems. You're entrusting your data to a third party, often with unclear logging policies and potential vulnerabilities. Not to mention the recurring costs that can add up over time If you have a bit of...

When it comes to terminal shells, many developers (myself included) have stuck with what they know or what they've seen others use online, without exploring other options. It's time to venture out and discover the world of terminal shells. Most developers are likely using Zsh, a POSIX-compatible shell, probably with Oh My Zsh on top. But there's a whole spectrum of shells out there, each with its own strengths and quirks. Today, we're going to explore three major players: Bash, Zsh, and Fish....

6 Neovim Plugins I Use To Troll Code Reviewers The Espresso Fridays is brought to you by: Zero To Running a Kubernetes Application Without Weeks of Studying A hands-on Kubernetes guide to deploy your first scaleable application In under 90 minutes you'll: ✅ Learn all the critical Kubernetes basics from a 10-year industry expert ✅ CUT learning time by 60% with a hands-on application deployment walkthrough ✅ Never feel inexperienced again with the hottest technology in the market Start learning...