-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmacos.bash
executable file
·74 lines (66 loc) · 3.17 KB
/
macos.bash
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
#!/bin/bash
osascript -e 'tell application "System Preferences" to quit'
mkdir -p ~/Downloads/screenshots # setup screenshots folder for later
# set screenshot location
defaults write com.apple.screencapture location ~/Downloads/screenshots;
# disable screenshot shadow
defaults write com.apple.screencapture disable-shadow -bool TRUE;
# set type to png
defaults write com.apple.screencapture type png
### MISC ###
# set menubar clock to prefered 24 hr time
defaults write NSGlobalDomain AppleICUForce12HourTime -bool false
# restart OSX services
killall SystemUIServer
# keep the desktop clean even if there are files in the Desktop dir
defaults write com.apple.finder CreateDesktop false
# display the status bar in the finder window
defaults write com.apple.finder ShowStatusBar -bool true
# Finder: disable window animations and Get Info animations
defaults write com.apple.finder DisableAllAnimations -bool true
# Finder: show hidden files by default
defaults write com.apple.Finder AppleShowAllFiles -bool true
# Finder: show path bar
defaults write com.apple.finder ShowPathbar -bool true
killall Finder
# Disable smart quotes as they’re annoying when typing code
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
# Disable smart dashes as they’re annoying when typing code
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
# Disable auto capitalization
defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false
# Disable automatic period substitution
defaults write NSGlobalDomain NSAutomaticPeriodSubstitutionEnabled -bool false
# Disable auto correct for spelling
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
# Set a blazingly fast keyboard repeat rate (1 = fastest for macOS high sierra, older versions support 0)
defaults write NSGlobalDomain KeyRepeat -int 2
# Finder: show all filename extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Enable the 2D Dock
defaults write com.apple.dock no-glass -bool true
# Automatically hide and show the Dock
defaults write com.apple.dock autohide -bool true
# Make Dock icons of hidden applications translucent
defaults write com.apple.dock showhidden -bool true
# Enable highlight hover effect for the grid view of a stack (Dock)
defaults write com.apple.dock mouse-over-hilte-stack -bool true
# Enable spring loading for all Dock items
defaults write enable-spring-load-actions-on-all-items -bool true
# Show indicator lights for open applications in the Dock
defaults write com.apple.dock show-process-indicators -bool true
# Don’t animate opening applications from the Dock
defaults write com.apple.dock launchanim -bool false
# empty the dock of any pre-defined apps
defaults delete com.apple.dock persistent-apps
# clean up right side (persistent)
defaults delete com.apple.dock persistent-others
killall Dock
# Show week numbers (10.8 only)
defaults write com.apple.iCal "Show Week Numbers" -bool true
# Show 7 days
defaults write com.apple.iCal "n days of week" -int 7
# Week starts on monday
defaults write com.apple.iCal "first day of week" -int 1
# Show event times
defaults write com.apple.iCal "Show time in Month View" -bool true