Add Touch ID as an authentication source for sudo
authentication on macOS and persist across OS updates.
Adding tid_enable
to /etc/pam.d/sudo
allows Touch ID to be used to authenticate sudo commands on macOS, but this change is reset after every OS update. This tweak to your zsh profile will automatically re-add Touch ID functionality after an update:
Manually add the contents of .zshrc
to the .zshrc
file in your user profile, or execute the following command in Terminal:
(echo && curl https://raw.githubusercontent.com/jbowring/auto-bio-sudo/main/.zshrc) >> ~/.zshrc