~/til / commit 7c5cad5

On a Mac, sudo can use Touch ID, and it survives updates

Since macOS Sonoma there’s a file meant for exactly this, which system updates leave alone:

sudo cp /etc/pam.d/sudo_local.template /etc/pam.d/sudo_local

Then uncomment the pam_tid.so line. Now sudo asks for a fingerprint instead of a password. It’s a small thing, but anything that stops me typing my password into a terminal fifty times a week is a win.