dotfiles/os/macos/textedit.pref.fish

17 lines
487 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 "TextEdit"
execute "defaults write com.apple.TextEdit PlainTextEncoding -int 4 && \
defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4" \
"Open and save files as UTF-8 encoded"
execute "defaults write com.apple.TextEdit RichText 0" \
"Use plain text mode for new documents"
killall "TextEdit" &>/dev/null