使用 Touch ID 授权 sudo
#!/bin/bash
# Use sudo with Touch ID on macOS
# maybe you should make a backup
filename=/private/etc/pam.d/sudo
awk 'NR==2{print "auth sufficient pam_tid.so"}1' "$filename" | sudo tee "$filename"
References
- https://www.imore.com/how-use-sudo-your-mac-touch-id.
- https://unix.stackexchange.com/a/353232.