Mac Tip: Show full Unix path at top of OS X Finder windows

If you’re like me, you have similarly named directories—src, bin, images, etc.—strewn all over your filesystem. It’s always irked me that the Mac OS X Finder windows display only the basenames in title bars. You can visually see the containing tree by Command-clicking the basename in the title bar (and, under Leopard, View → Show Path Bar), but I’ve wanted to see it at a glance.

Turns out, it’s easily fixed, with the shell command:

$ defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

Then just restart the Finder (since you’re in a shell anyway, killall -HUP Finder will do nicely, or if you’re more visually-oriented, just option-right-click the Finder icon in the Dock and choose Relaunch.

Found on the irreplaceable macosxhints.com.

Unfortunately, AFAICT there’s no way to get the full path to show up in the Finder’s Window menu (or its shadow in the Dock menu). So you might still see bin … bin … bin in that menu. Oh, well.