dotfiles/os/macos/terminal.pref.fish

13 lines
332 B
Fish
Raw Normal View History

2024-02-01 21:27:49 -08:00
#!/usr/bin/env fish
source "$DOT/script/utils.fish"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_subtitle "Terminal"
if ! grep -q "pam_tid.so" "/etc/pam.d/sudo"
execute "sudo sh -c 'echo \"auth sufficient pam_tid.so\" >> /etc/pam.d/sudo'" \
"Use Touch ID to authenticate sudo"
end