Jeff Levin

Stream

Shorts and things I find interesting

A little bit of polish

I can never remember the path to my iCloud directory. Same with my Obsidian vault. I wanted a short name for each, with tab completion so I could keep navigating from there.

Previously I had done something like alias dotfiles="cd ~/projects/dotfiles", but that didn’t let me tab through paths from that shortcut.

I asked an agent. Turns out zsh has a feature called named directories:

hash -d icloud="$HOME/Library/Mobile Documents/com~apple~CloudDocs"
hash -d obsidian="/full/path/to/your/obsidian/vault"

Put those in .zshrc, reload it, and now cd ~ic followed by Tab completes the name. cd ~icloud/ lets me keep tabbing through directories. It works with other commands too: ls ~obsidian.

A few seconds to add just a bit of polish I’d been wanting for years.

I had a light that didn’t work for years. A small thing I’d gotten used to working around. It’s been years since it was fixed, and I still get a little hit of joy every time I walk into that room and it works. Fixing little things in my environment feels like that.

This is one of my favorite uses of agents. I wrote a longer article about that in My environment is a playground again.

◉

Keep fighting the good fight

To everyone still writing handwritten notes: keep fighting the good fight. A couple of friends and I have been sending mis-holiday’d cards back and forth for years — a Christmas card in July, a birthday card six months late.

If I can tell you wrote it by hand, I’m a thousand times more likely to engage. The effort is the message. You can’t fake time.

A Christmas card repurposed as a birthday card, handwritten: "Dear Jeff — Happy Birthday! AJ & Hattie"