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 TextEdit
|
2024-02-01 21:27:49 -08:00
|
|
|
|
|
|
|
execute "defaults write com.apple.TextEdit PlainTextEncoding -int 4 && \
|
|
|
|
defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4" \
|
2024-02-03 12:05:02 -08:00
|
|
|
"Open and save files as UTF-8 encoded"
|
2024-02-01 21:27:49 -08:00
|
|
|
|
|
|
|
execute "defaults write com.apple.TextEdit RichText 0" \
|
2024-02-03 12:05:02 -08:00
|
|
|
"Use plain text mode for new documents"
|
2024-02-01 21:27:49 -08:00
|
|
|
|
2024-02-03 12:05:02 -08:00
|
|
|
killall TextEdit &>/dev/null
|