-
Notifications
You must be signed in to change notification settings - Fork 1
/
osx-settings-setup.sh
executable file
·81 lines (59 loc) · 3.66 KB
/
osx-settings-setup.sh
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
## OSX Settings setup, modified from jbelke https://gist.github.com/jbelke/4496b2b1d7900d7971802332234bd781
# Expand "Save" and "Print" panels.
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true
# Use current directory as default search scope in Finder.
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
# Remove duplicate "Open With" options.
# /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
# Show extensions in Finder.
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Show dot files
defaults write com.apple.finder AppleShowAllFiles -bool true
# Show path in Finder.
defaults write com.apple.finder ShowPathbar -bool true
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
# Allow selecting text in Quick Look.
defaults write com.apple.finder QLEnableTextSelection -bool true
# Use OSX print dialog in Chrome.
defaults write com.google.Chrome DisablePrintPreview -bool true
defaults write com.google.Chrome PMPrintingExpandedStateForPrint2 -bool true
# Disable the all too sensitive backswipe on trackpads
defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool false
defaults write com.google.Chrome.canary AppleEnableSwipeNavigateWithScrolls -bool false
# Copy email addresses, not names, from Mail.
# defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
# Quit Printer app when complete.
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
# Ignore Quarentine of unknown apps.
# defaults write com.apple.LaunchServices LSQuarantine -bool false
# Reboot to a clean slate.
# defaults write com.apple.systempreferences NSQuitAlwaysKeepsWindows -bool false
# Enable "Tap to Click".
# defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
# defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
# defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
# Invert scrolling direction.
# defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false
# Open Finder at "~/Downloads" directory.
defaults write com.apple.finder NewWindowTarget -string "PfLo" # Location
defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}/Downloads"
# Don't create temporary files to network mounted drives.
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# Unhide "~/Library" folder.
chflags nohidden ~/Library
# Add iOS Simulator app to normal "/Applications" directory.
ln -sf "/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app" "/Applications/iOS Simulator.app"
# Disable Time Machine prompt for every disk.
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
# Configure Activity Monitor to always open a window, sorted by the most CPU intensive tasks.
defaults write com.apple.ActivityMonitor OpenMainWindow -bool true
defaults write com.apple.ActivityMonitor ShowCategory -int 0
defaults write com.apple.ActivityMonitor SortColumn -string "cpUUsage"
defaults write com.apple.ActivityMonitor SortDirection -int 0
# Disable the bottom-right hot corner (it's set to quick note by default which I don't use lol)
defaults write com.apple.dock wvous-br-corner -int 0
# Don't let Preview open all previously opened files every time
defaults write com.apple.Preview ApplePersistenceIgnoreState YES