Repository navigation
Expand file tree
/
Copy pathmacos.sh
More file actions
69 lines (48 loc) · 2.4 KB
/
Copy pathmacos.sh
File metadata and controls
69 lines (48 loc) · 2.4 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
59
60
61
62
63
64
65
66
67
68
###############################################################################
# Finder
###############################################################################
# Close any open System Preferences panes, to prevent them from overriding
# settings we’re about to change
echo "Quitting System Preferences..."
osascript -e 'tell application "System Preferences" to quit'
# Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF)
defaults write com.apple.screencapture type -string "png"
# Finder show path bar
defaults write com.apple.finder ShowPathbar -bool true
# Finder show status bar
defaults write com.apple.finder ShowStatusBar -bool true
# Disable the warning when changing a file extension
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Use column view in all Finder windows by default
# Four-letter codes for all view modes: `icnv`, `clmv`, `Flwv`, `Nlsv`
defaults write com.apple.finder FXPreferredViewStyle -string "clmv"
# Disable 'natural' scrolling
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false
killall Finder &> /dev/null
###############################################################################
# Dock
###############################################################################
# Disable recent apps in Dock
defaults write com.apple.dock show-recents -bool false
# Move dock to right
defaults write com.apple.dock orientation bottom
# Enable autohide
defaults write com.apple.dock autohide -bool false
# Speed transition
defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.dock autohide-time-modifier -float 0.1
killall Dock &> /dev/null
###############################################################################
# Keyboard
###############################################################################
# Set a blazingly fast keyboard repeat rate
defaults write NSGlobalDomain KeyRepeat -int 1
defaults write NSGlobalDomain InitialKeyRepeat -int 10
###############################################################################
# Other
###############################################################################
# Open App from 3rd-party developer
defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool NO
# Enable Spotify as default music player
defaults write digital.twisted.noTunes replacement /Applications/Spotify.app
echo "Done! Please restart your computer."