惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
WordPress大学
WordPress大学
博客园 - 【当耐特】
The Cloudflare Blog
B
Blog
Last Week in AI
Last Week in AI
小众软件
小众软件
量子位
S
SegmentFault 最新的问题
V
Visual Studio Blog
博客园 - 叶小钗
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
Hugging Face - Blog
Hugging Face - Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
宝玉的分享
宝玉的分享
A
About on SuperTechFans
雷峰网
雷峰网
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
腾讯CDC
MongoDB | Blog
MongoDB | Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Martin Fowler
Martin Fowler

Maggie Appleton

The Dark Forest and Generative AI One Developer, Two Dozen Agents, Zero Alignment Gas Town’s Agent Patterns, Design Bottlenecks, and Vibecoding at Scale January 2026 | Maggie Appleton A Treatise on AI Chatbots Undermining the Enlightenment A Brief History & Ethos of the Digital Garden Vibe Code is Legacy Code May 2025 | Maggie Appleton Home-Cooked Software and Barefoot Developers Statistically, When Will My Baby Be Born? Speculative Calendar Events ChatGPT Would be a Decent Policy Advisor March 2025 | Maggie Appleton The Expanding Dark Forest and Generative AI Humanity's Last Exam Squish Meets Structure Common Misconceptions in AI Undetected AI Exam Answers Unbaited Smidgeons Growing a Human: The First 30 Weeks How to Import Academic Papers from Zotero into Tana December 2024 | Maggie Appleton Leaving Elicit July 2024 | Maggie Appleton A Short History of Bi-Directional Links The Pattern Language of Project Xanadu Assumed Audiences Ambient Co-presence On Opening Essays, Conference Talks, and Jam Jars
Aesthetic Command Lines with Hyper, Spaceship, and Oh My Zsh
Justin Sherrill · 2024-10-13 · via Maggie Appleton

After a recent accident with a pressurised water bottle on an airplane, I had to hard reset my Macbook. Or rather, the kind folks at the Apple Support desk reset it for me, after replacing the water-logged screen and logic board. I wish I could tell you this was the first time it’s ever happened to me, but it’s not. AppleCare+ has paid for itself many times over.

Not a big deal, but it meant I had to go through setting up my local development environment from scratch. I’ve done this enough times that I have a checklist of things I usually run through. Most of these are boring; git, github, homebrew, node, yarn, python, etc.

The fun part is making the command line itself beautiful. I spend enough time in it that it matters whether it looks and feels right to me. I’ve settled on a combination of the Hyper terminal, the Spaceship prompt, and Oh My Zsh for small conveniences. Here’s what it looks like:

My command line styled with hyper and spaceship

Compared to most developers, this is a pretty minimal set of customisations, but it’s enough for me; it’s clean, minimal, and readable. I primarily use Hyper to handle the styling and colours. When you install Hyper, it’ll automatically create a .hyper.js config file for you in your root directory. This is where you can tweak fonts, spacing, themes, and add plugins. You can open it in your standard code editor (VS Code, or whatever) by typing code ~/.hyper.js in the command line. Here’s my full hyper.js config file if you want to see what I’ve customised.

The theme I use is hyper-material-theme and the typeface is JetBrains Mono , both of which are free. You can browse plenty of other themes and plugins on the Awesome Hyper repository.

I also use the Hyper plugin hyper-statusline which adds a small bar to the bottom of the window with quicklinks to the working directory, the git commit hash, and number of dirty (uncommited) files. Clicking the former opens the directory in Finder, and the latter opens the commit on GitHub.

Oh My Zsh doesn’t add much to the aesthetics here, but has useful plugins and makes installing Spaceship easy (described below). But I particularly like the zsh-autosuggestions plugin which autosuggests commands and files based on your previous behaviour.

Zsh autocomplete in the command line

Spaceship is what makes the prompt beautiful and shows me useful information like my current working directory, git branch, whether I have unstaged changes, and process run times. I just use their default prompt, but they offer an exessive number of configuration options.

Assuming you’re using either Zsh or Oh My Zsh, you can set it via your /.zshrc file. You first need to clone the GitHub repo and symlink it, then set ZSH_THEME="spaceship" in the zshrc config file; instructions are on the GitHub repo .

That’s it. Nothing crazy complicated. Just a slightly nicer feeling command line experience.