forked from amarshall/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathosx
executable file
·99 lines (87 loc) · 4.29 KB
/
osx
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
#!/bin/sh
# System misc.
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
defaults write NSGlobalDomain AppleShowScrollBars -string 'Always'
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
defaults write NSGlobalDomain NSTextShowsControlCharacters -bool true
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
defaults write com.apple.universalaccess reduceTransparency -bool true
sudo tmutil disablelocal
# Time
sudo systemsetup -setnetworktimeserver 'us.pool.ntp.org'
defaults write NSGlobalDomain AppleICUForce24HourTime -bool true
defaults write com.apple.menuextra.clock DateFormat -string 'EEE MMM d H:mm:ss'
# Keyboard
defaults write NSGlobalDomain AppleKeyboardUIMode -int 2 # Tab accesses all controls
defaults write NSGlobalDomain InitialKeyRepeat -int 25
defaults write NSGlobalDomain KeyRepeat -int 2
# Dashboard
defaults write com.apple.dashboard enabled-state -int 1 # 1=Disabled, 2=AsSpace, 3=Overlay
# Disk Utility
defaults write com.apple.DiskUtility advanced-image-options -bool true
defaults write com.apple.DiskUtility DUDebugMenuEnabled -bool true
# Dock
defaults write com.apple.dock autohide -bool true
defaults write com.apple.dock largesize -int 72
defaults write com.apple.dock minimize-to-application -bool true
defaults write com.apple.dock tilesize -int 48
# Finder
/usr/libexec/PlistBuddy -c 'Set :DesktopViewSettings:IconViewSettings:arrangeBy grid' ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c 'Set :DesktopViewSettings:IconViewSettings:iconSize 64' ~/Library/Preferences/com.apple.finder.plist
defaults read ~/Library/Preferences/com.apple.finder.plist # Refresh cache from disk
defaults write com.apple.finder FXDefaultSearchScope -string 'SCcf' # Current folder
defaults write com.apple.finder FXInfoPanesExpanded -dict \
General -bool true \
OpenWith -bool true \
Privileges -bool true
defaults write com.apple.finder FXPreferredViewStyle -string 'clmv' # Column view
defaults write com.apple.finder NewWindowTarget -string 'PfHm' # Home directory
defaults write com.apple.finder NewWindowTargetPath -string "file://$HOME/"
defaults write com.apple.finder QLEnableTextSelection -bool true
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowMountedServersOnDesktop -bool true
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
defaults write com.apple.finder ShowStatusBar -bool true
defaults write com.apple.finder SidebarTagsSctionDisclosedState -bool true
chflags nohidden ~/Library
# Hot Corners
# 0: no-op
# 2: Mission Control
# 3: Show application windows
# 4: Desktop
# 5: Start screen saver
# 6: Disable screen saver
# 7: Dashboard
# 10: Put display to sleep
# 11: Launchpad
# 12: Notification Center
defaults write com.apple.dock wvous-bl-corner -int 2
defaults write com.apple.dock wvous-bl-modifier -int 0
defaults write com.apple.dock wvous-br-corner -int 10
defaults write com.apple.dock wvous-br-modifier -int 0
defaults write com.apple.dock wvous-tl-corner -int 7
defaults write com.apple.dock wvous-tl-modifier -int 0
defaults write com.apple.dock wvous-tr-corner -int 4
defaults write com.apple.dock wvous-tr-modifier -int 0
# Safari
defaults write com.apple.Safari IncludeDevelopMenu -bool true
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
# Screen capture
defaults write com.apple.screencapture disable-shadow -bool true
defaults write com.apple.screencapture disable-shadow -bool true
defaults write com.apple.screencapture disable-shadow -bool true
# TextEdit
defaults write com.apple.TextEdit IgnoreHTML -bool true
defaults write com.apple.TextEdit NSFixedPitchFont -string 'Menlo-Regular'
defaults write com.apple.TextEdit NSFixedPitchFontSize -int 14
defaults write com.apple.TextEdit NSFont -string 'HelveticaNeue'
defaults write com.apple.TextEdit NSFontSize -int 14
defaults write com.apple.TextEdit RichText -bool false
# Restart things to take effect
killall Dock
killall Finder
killall SystemUIServer