forked from geerlingguy/mac-dev-playbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
osx-settings.sh
59 lines (44 loc) · 2.37 KB
/
osx-settings.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
# change host name
sudo scutil --set ComputerName "name"
sudo scutil --set LocalHostName "name"
sudo scutil --set HostName "tres"
# make FirefoxDeveloperEdition the default browser
/Applications/FirefoxDeveloperEdition.app/Contents/MacOS/firefox -setDefaultBrowser
### Finder ###
# show hidden files in Finder
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
# default Finder to column layout
defaults write com.apple.Finder FXPreferredViewStyle clmv
# enable Finder status bar
defaults write com.apple.Finder ShowStatusBar 1
# show full path in Finder title
# show folders first
defaults write com.apple.finder _FXSortFoldersFirst 1
# desktop icons
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:iconSize 32" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:gridSpacing 24" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:textSize 10" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:labelOnBottom 0" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:showItemInfo 0" ~/Library/Preferences/com.apple.finder.plist
### /Finder ###
# install zulu
curl -L https://zulu.sh/install | zsh && zsh
# zulu plugins
zulu install autosuggestions color command-not-found fast-syntax-highlighting filthy git history-substring-search revolver solarized-man utility you-should-use
# enable touch to click on trackpad
defaults -currentHost write -globalDomain com.apple.mouse.tapBehavior -int 1
# auto hide dock
osascript -e "tell application \"System Events\" to set the autohide of the dock preferences to true"
# remove all icons from dock
defaults write com.apple.dock static-only -bool TRUE; killall Dock
# dock icon size
defaults write com.apple.dock tilesize 48
# show hidden files on save dialogs
defaults write -g AppleShowAllFiles -bool true
# default expanded save dialogs
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true
# Mute startup sound
sudo nvram SystemAudioVolume=%00