Created
October 3, 2014 12:48
-
-
Save thomasmorf/ae5e0c86a644d1094afd to your computer and use it in GitHub Desktop.
Useful OSX customizations via command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# No sound effects on startup | |
sudo nvram SystemAudioVolume=" " | |
# Expand panel on save by default | |
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true | |
# Disable dialog on applicaton first-run | |
defaults write com.apple.LaunchServices LSQuarantine -bool false | |
# No .DS_Store files on network volumes | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true | |
# Make Finder's list view on open dialog the default | |
defaults write com.apple.Finder FXPreferredViewStyle Nlsv | |
# Menu bar extra: show remaining battery, hide remaining time | |
defaults write com.apple.menuextra.battery ShowPercent -string "YES" | |
defaults write com.apple.menuextra.battery ShowTime -string "NO" | |
# hide menu icons | |
defaults -currentHost write com.apple.systemuiserver dontAutoLoad -array-add "/System/Library/CoreServices/Menu Extras/TimeMachine.menu" | |
defaults -currentHost write com.apple.systemuiserver dontAutoLoad -array-add "/System/Library/CoreServices/Menu Extras/Volume.menu" | |
# Hide Spotlight icon | |
sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search | |
# Disable GateKeeper | |
sudo spctl --master-disable | |
# Enable Firewall | |
sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 1 | |
# Accessibility: Keyboard control in dialogs, all controls | |
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 | |
# Mute feedback on volume change | |
defaults write -g 'com.apple.sound.beep.feedback' -bool false | |
# Use current directory as default search scope in Finder | |
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment