Skip to content

Instantly share code, notes, and snippets.

@git-commit
Created July 14, 2022 16:50
Show Gist options
  • Save git-commit/a3e518e3af7a94432ad6f6fef464f08b to your computer and use it in GitHub Desktop.
Save git-commit/a3e518e3af7a94432ad6f6fef464f08b to your computer and use it in GitHub Desktop.
ZSH script to use touch id for sudo
# Enable sudo via touch ID
grep -qxF "auth sufficient pam_tid.so" /etc/pam.d/sudo || sudo sed -i '' '1 a\
auth sufficient pam_tid.so
' /etc/pam.d/sudo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment