-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
52 lines (35 loc) · 1.81 KB
/
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
#!/bin/sh
# Only show active apps in dock
defaults write com.apple.dock static-only -bool TRUE
# Install brew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install brew packages
brew update
mkdir ~/Screenshots
# OSX CHANGES
echo "Change default dir for screenshots to ~/Screenshots"
defaults write com.apple.screencapture location ~/Screenshots
echo "Change screenshot format to jpg to save space"
defaults write com.apple.screencapture type jpg
# source: https://gist.github.com/brandonb927/3195465
echo "Disable Photos.app from starting everytime a device is plugged in"
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true
echo "Increasing sound quality for Bluetooth headphones/headsets"
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" -int 40
echo "Show hidden files in Finder by default"
defaults write com.apple.Finder AppleShowAllFiles -bool true
echo "Show dotfiles in Finder by default"
defaults write com.apple.finder AppleShowAllFiles TRUE
echo "Show all filename extensions in Finder by default"
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
echo "Display full POSIX path as Finder window title"
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
echo "Disable the warning when changing a file extension"
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
echo "Avoid creation of .DS_Store files on network volumes"
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
echo "Prevent Time Machine from prompting to use new hard drives as backup volume"
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
killall SystemUIServer
# Git config changes
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"