dotfiles/os/macos/terminal.pref.fish

18 lines
462 B
Fish
Raw Normal View History

2024-02-01 21:27:49 -08:00
#!/usr/bin/env fish
source "$DOT/script/utils.fish"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2024-02-03 12:05:02 -08:00
print_subtitle Terminal
2024-02-01 21:27:49 -08:00
if ! grep -q "pam_tid.so" "/etc/pam.d/sudo"
2024-02-04 15:52:43 -08:00
execute "sudo sh -c 'echo \"auth sufficient pam_tid.so\" >> /etc/pam.d/sudo'"
"Use Touch ID to authenticate sudo"
2024-02-01 21:27:49 -08:00
end
2024-02-04 15:52:43 -08:00
execute "defaults write com.apple.terminal StringEncodings -array 4" \
"Only use UTF-8 encoding"
killall Terminal &>/dev/null