-
Notifications
You must be signed in to change notification settings - Fork 0
/
.macos
115 lines (96 loc) · 6.37 KB
/
.macos
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/usr/bin/env bash
osascript -e 'tell application "System Preferences" to quit'
sudo -v
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
defaults write com.apple.finder CreateDesktop -bool false
sudo chflags nohidden /Volumes # make the /Volumes directory visible
chflags nohidden ~/Library # make ~/Library directory visible
defaults write com.apple.finder AnimateWindowZoom -bool false # Disable animation when opening folders
defaults write com.apple.finder AppleShowAllFiles YES # show invisible files
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" # Search the current directory by default when searching
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false # Disable warning when changing extension
defaults write com.apple.finder FXPreferredViewStyle Nlsv # always list view
defaults write com.apple.finder FinderSpawnTab -bool true # Open folders in tabs instead of new windows
defaults write com.apple.finder NewWindowTarget -string "PfHm" # open home folder by default in new window
defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}/" # open home folder by default in new window
defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true # Automatically open a new window if there is a mounted disk
defaults write com.apple.finder QLEnableTextSelection -bool true # Make text selectable in quick look
defaults write com.apple.finder QuitMenuItem -bool true # add an item to quit Finder
defaults write com.apple.finder ShowPathbar -bool true # show the passbar
defaults write com.apple.finder ShowStatusBar -bool true # display the status bar
defaults write com.apple.finder ShowTabView -bool true # show tab bar
defaults write com.apple.finder ShowRecentTags -bool false #Recent Tags
defaults write com.apple.finder WarnOnEmptyTrash -bool false # disable warning before emptying trash
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true # Show full path in Finder title bar
defaults write com.apple.finder _FXSortFoldersFirst -bool true # put directories before when sort by name is selected
defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false # Disable animation when opening files
defaults write -g AppleShowAllExtensions -bool true # show files with all extensions
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
defaults write com.apple.screencapture name "screenshot" # rename
defaults write com.apple.screencapture disable-shadow -bool true # Eliminate shadows in screen captures
defaults write com.apple.screencapture type -string "png" # Set screenshot save format to PNG
defaults write com.apple.dock tilesize -int 55
defaults write com.apple.dock autohide -bool true
defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.dock autohide-time-modifier -float 0
defaults write com.apple.dock show-recents -bool false
defaults write com.apple.dock mineffect -string scale
defaults write com.apple.dock minimize-to-application -bool true
defaults write com.apple.dock launchanim -bool false
defaults write com.apple.dock static-only -bool true
defaults write com.apple.dashboard mcx-disabled -bool true
defaults write com.apple.dock dashboard-in-overlay -bool true
defaults write com.apple.dock mru-spaces -bool false
defaults write com.apple.Safari UniversalSearchEnabled -bool false
defaults write com.apple.Safari SuppressSearchSuggestions -bool true
defaults write com.apple.Safari ShowFullURLInSmartSearchField -bool true
defaults write com.apple.Safari AutoOpenSafeDownloads -bool false
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
defaults write com.apple.Safari IncludeDevelopMenu -bool true
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
defaults write com.apple.Safari WebAutomaticSpellingCorrectionEnabled -bool false
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
defaults write com.apple.Safari SendDoNotTrackHTTPHeader -bool true
defaults write com.apple.Safari InstallExtensionUpdatesAutomatically -bool true
# 1. Pick color in RGB format
# 2. String with values in order, each devided by 255
# #5f5fec => rgb(95,95,236) => "0.372549019607843 0.372549019607843 0.925490196078431"
defaults write NSGlobalDomain AppleHighlightColor -string "0.372549019607843 0.372549019607843 0.925490196078431"
# Possible values: `WhenScrolling`, `Automatic` and `Always`
defaults write NSGlobalDomain AppleShowScrollBars -string "WhenScrolling"
defaults write com.apple.terminal FocusFollowsMouse -bool true
defaults write org.x.X11 wm_ffm -bool true
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
defaults write com.apple.ActivityMonitor OpenMainWindow -bool true
defaults write com.apple.ActivityMonitor IconType -int 5
defaults write com.apple.ActivityMonitor ShowCategory -int 0
defaults write com.apple.ActivityMonitor SortColumn -string "CPUUsage"
defaults write com.apple.ActivityMonitor SortDirection -int 0
defaults write com.apple.TextEdit RichText -int 0
defaults write com.apple.TextEdit PlainTextEncoding -int 4
defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4
defaults write com.apple.DiskUtility DUDebugMenuEnabled -bool true
defaults write com.apple.DiskUtility advanced-image-options -bool true
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true
defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticQuoteSubstitutionEnabled" -bool false
defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "continuousSpellCheckingEnabled" -bool false
for app in "Activity Monitor" \
"cfprefsd" \
"Dock" \
"Finder" \
"Messages" \
"Photos" \
"Safari" \
"SystemUIServer" \
"Terminal";
do
killall "${app}" &> /dev/null
done