-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathosx-set-defaults.sh
35 lines (24 loc) · 1.56 KB
/
osx-set-defaults.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
#!/bin/bash
# General UI/UX
###############################################################################
# Disable the “Are you sure you want to open this application?” dialog
defaults write com.apple.LaunchServices LSQuarantine -bool false
# Reveal IP address, hostname, OS version, etc. when clicking the clock in the login window
sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
# Finder
###############################################################################
# Always open everything in Finder's column view.
defaults write com.apple.Finder FXPreferredViewStyle Nlsv
# Disable the warning before emptying the Trash
defaults write com.apple.finder WarnOnEmptyTrash -bool false
# Finder: show all filename extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Screen
###############################################################################
# Require password immediately after sleep or screen saver.
defaults write com.apple.screensaver askForPassword -int 1
defaults write com.apple.screensaver askForPasswordDelay -int 0
# Dock, Dashboard
###############################################################################
# Minimize windows into their application’s icon
defaults write com.apple.dock minimize-to-application -bool true