-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathosx-settings.sh
More file actions
executable file
·58 lines (39 loc) · 1.66 KB
/
osx-settings.sh
File metadata and controls
executable file
·58 lines (39 loc) · 1.66 KB
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
#!/bin/sh
echo 'Changing OS X default settings...'
# Use AirDrop over every interface. srsly this should be a default.
defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
# Always open everything in Finder's list view. This is important.
defaults write com.apple.Finder FXPreferredViewStyle Nlsv
# Show the ~/Library folder.
chflags nohidden ~/Library
# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
# Save to disk (not to iCloud) by default
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
# When performing a search in Finder, search the current folder by default
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
# Avoid creating .DS_Store files on network volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# Don’t automatically rearrange Spaces based on most recent use
defaults write com.apple.dock mru-spaces -bool false
# Save screenshots to folder ~/Pictures/screenshots
if [ ! -d "~/Pictures/screenshots"]; then
mkdir "~/Pictures/screenshots"
fi
defaults write com.apple.screencapture location ~/Pictures/screenshots/
killall SystemUIServer
# Dock settings:
################
# Set dock to left
defaults write com.apple.dock orientation -string left
# Set dock size to smallest
defaults write com.apple.dock tilesize -int 24
# Autohide dock
defaults write com.apple.dock autohide -bool true
# Minimize apps to application icon
defaults write com.apple.dock minimize-to-application -bool true
# Turn of magnification
defaults write com.apple.dock magnification -bool false
# Restart the dock
killall Dock
echo 'Done!'