-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_once_after_apps-configuration-darwin.sh.tmpl
46 lines (40 loc) · 2.26 KB
/
run_once_after_apps-configuration-darwin.sh.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{{ if (eq .chezmoi.os "darwin") -}}
#!/bin/bash
# ---------------------------------------------------------------------------------------------------------------------
# Docker settings
# ---------------------------------------------------------------------------------------------------------------------
# Disable automatic updates
killall Docker
defaults write com.docker.docker SUAutomaticallyUpdate -bool false
defaults write com.docker.docker SUEnableAutomaticChecks -bool false
open -a Docker
# ---------------------------------------------------------------------------------------------------------------------
# GPG settings
# ---------------------------------------------------------------------------------------------------------------------
gpg-connect-agent reloadagent /bye
# ---------------------------------------------------------------------------------------------------------------------
# Safari settings
# ---------------------------------------------------------------------------------------------------------------------
killall Safari
# Privacy: don’t send search queries to Apple
defaults write com.apple.Safari UniversalSearchEnabled -bool false
defaults write com.apple.Safari SuppressSearchSuggestions -bool true
# Privacy: Enable “Do Not Track”
defaults write com.apple.Safari SendDoNotTrackHTTPHeader -bool true
# Disable AutoFill
defaults write com.apple.Safari AutoFillFromAddressBook -bool false
defaults write com.apple.Safari AutoFillPasswords -bool false
defaults write com.apple.Safari AutoFillCreditCardData -bool false
defaults write com.apple.Safari AutoFillMiscellaneousForms -bool false
# ---------------------------------------------------------------------------------------------------------------------
# TextEdit settings
# ---------------------------------------------------------------------------------------------------------------------
killall TextEdit
# Set default TextEdit document format as plain text
defaults write com.apple.TextEdit "RichText" -bool "false"
# Open and save files as UTF-8
defaults write com.apple.TextEdit PlainTextEncoding -int 4
defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4
# applying mac defaults from defaults.yaml
apply-user-defaults -v {{ joinPath .chezmoi.sourceDir "defaults.yaml" }}
{{ end -}}