Yosemite (Mac OS 10.10) may well be one of the best updates to the Mac Operating System in a long time and it has a huge number of backend changes that makes life a lot easier. While some of these changes are great for the average end user the may be super annoying for the IT people or those who spend there days doing coding work. This simple collection of command line command will help make your life with Yosemite better.
The majority of the commands listed must be run with super user commands, your best option is to either login as the “su” user from command line or execute “sudo -v” prior to starting to enter these commands, this will cause all the commands to be run as the super user account.
General User Interface Setting
Completely Disable Notification Center
Completely remove notification from an individual user account. This is not system wide and only effects the user the command is run from.
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist
Disable OS X Gate Keeper
Remove the setting that causes OS X to warn you when installing applications not purchased through the app store.
sudo spctl --master-disable sudo defaults write /var/db/SystemPolicy-prefs.plist enabled -string no defaults write com.apple.LaunchServices LSQuarantine -bool false
Increase the window resize speed for Cocoa Applications
By default the speed at which windows resize is made intentionally slower this is great for people who are not good with a mouse but super annoying for avid users.
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
Expand the Save Panel By Default
Apple wants you to save everything in the same place or the last spot you saved something, to streamline this the Save window now lacks a lot of options unless you expand. These setting will make it expanded by default.
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true
Quit the Printer Application after printing is complete.
Mac OS 10.10 has it set so when you print something the printer application will remain running, why this would be useful I have no idea but this setting will cause it to automatically quit once the print job is complete.
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
Saving to disk (not to iCloud) by default
Apple really likes there new cloud based system, so much so that they think you should everything there. Personally I like my keeping my stuff on my own machine instead of some magically box owned by Apple. This setting will cause your default save location to be your computer instead of your iCloud Disk.
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
Show additional information when clicking the info field on the login screen.
There used to be a little known feature that allowed you to show additional information on the login screen such as the IP Address, Hostname, OS Version, and other items useful when you are trying to resolve directory related problems. This settings will bring that back.
sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
Never go to Sleep
The sleep mode is great for people trying to save power but is annoying for people who run automated tasks or extended jobs overnight. This setting will disable the sleep mode on the system.
systemsetup -setcomputersleep Off > /dev/null
Check for Updates Daily
If your running beta software you really don’t want to wait a week to get the latest updates. The default setting for your system is to only check for system updates once per week. This setting will cause checks to be conducted daily.
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
Disable Smart Quotes and Smart Dashes
Mac OS 10.10 includes this nice little feature that will adjust your quotes and dashes to a different entry if you enter a certain number. This is great unless you write code where if I enter “—” that means I actually want “—” not something else.
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
Accessories and Input Devices
Increase the Sound Quality of Bluetooth Audio Output Devices
Mac OS 10.10 an annoying little feature that is designed to reduce bluetooth traffic. This is done by automatically lowering the quality of audio sent over bluetooth to speakers and headsets. This setting removes that quality reduction.
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" -int 40
Enable Full Keyboard Control
In the past it was possible to rid yourself of the mouse completely. Then some genius decided you should not be able to tab through dialog boxes. Making a mouse required to click ok buttons and things of that nature. This setting will restore the ability to use the tab and enter keys in prompts.
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
Increase Keyboard repeat rate.
When I hold a key down on the keyboard that means I want the system to respond, this setting will remove the delay generated when a key is held down.
defaults write NSGlobalDomain KeyRepeat -int 0
System wide auto-correct disable.
This setting will turn off auto-correct system wide.
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
Turn off Keyboard Illumination when not in use
Nothing will kill your laptop power faster than running the Keyboard Illumination when your not using the machine. This setting will turn off the keyboard lights when the keyboard is not touched for five minutes.
defaults write com.apple.BezelServices kDimTime -int 300
Enable Subpixel Font Rending on non-Apple LCDs
Apple wants you to buy Apple Displays so intentional decrease the visual quality of text on non-Apple LCD displays. This setting will cause the system to treat all displays as equals when it comes to fonts.
defaults write NSGlobalDomain AppleFontSmoothing -int 2
Enable HiDPI display Modes
Apple wants you to run out and buy a new Retina Display, but what if I want high resolution options with out spending a thousand dollars on a new display? This setting will enable the selection of High Definition resolution options in your display settings. You will need to restart before this option becomes available.
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool true
Show me all files by default
Mac OS 10.10 hides all files that begin with a “.” or are flagged as hidden. These settings will cause finder to display all files.
defaults write com.apple.Finder AppleShowAllFiles -bool true defaults write com.apple.finder AppleShowAllFiles TRUE
Show file Extensions
While file extensions may be something most people don’t want to see, I do! This setting will restore the view of file extensions on all files.
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
Selection Option in Preview Window
The preview window is great for files, whats annoying is that I can’t copy text out of the preview window. This setting makes it possible.
defaults write com.apple.finder QLEnableTextSelection -bool true
Disable File Extension Warning
If I change a file extension it means I want the system to treat the file differently. It does not mean I want the old file extension added onto the end of the file name. This setting will remove the warning prompt when you change a file extension.
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
Disable .DS_Store files on Network Volumes
Windows administrators absolutely hate mac users, and with good reason! When ever you connect your mac to a network volume the finder will create this annoying file called DS_Store. The DS_Store file is invisible and defines the setting for icon layout and custom screen backgrounds. It is a completely useless file on network volumes, this setting will turn those files off.
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
Disable Disk Image Verification
If you use disk images a lot like I do there is a good chance you spend a good amount of time clicking the skip button when finder decides it wants to take five minutes to verify the disk image before it actually opens it. Now lets think for a minute if the disk image is bad clearly it won’t open. I don’t need finder to verify it before trying to open it, just OPEN IT.
defaults write com.apple.frameworks.diskimages skip-verify -bool true defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
Speed Up Mission Control
Mission control can be a useful part of Finder but it can be dreadfully annoying and slow. These settings will cause Mission Control to speed up the animations used and also group windows by application.
defaults write com.apple.dock expose-animation-duration -float 0.1 defaults write com.apple.dock "expose-group-by-app" -bool true
Remove Dock Auto Hide / Show Delay
If you auto-hide and show your dock, its likely you want it to actually appear and disappear when you put your mouse into the dock area. For some reason Apple decided there should be a delay in this process. This command removes the delay.
defaults write com.apple.dock autohide-delay -float 0 defaults write com.apple.dock autohide-time-modifier -float 0
Time Machine Prompting
Time Machine is a handy feature, but I plug external drives into my machine all the time. I really don’t need to be asked every time if I want to use it with time machine.
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
Hide Sidebar in Top Sites View
The top sites view can be nice and handy but why on earth would I want the side bar included when I have specifically told Safari to go into top sites mode. If I was going to need my history i would use that mode.
defaults write com.apple.Safari ShowSidebarInTopSites -bool false
Enable the Safari Debug Menu
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
Enable the Safari Developer Menu
defaults write com.apple.Safari IncludeDevelopMenu -bool true defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true defaults write com.apple.Safari "com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled" -bool true
Change in page search to include instead of start with
Safari in page search is only configured to look for things that start with what you search for instead of anything including it.
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false
Backspace to go to previous page.
For those people who are used to being able to use the keyboard for navigation, this setting restores the ability to use the backspace key on your keyboard to go to the previously visited page.
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2BackspaceKeyNavigationEnabled -bool true
Inspect Element in Contextual Menu
Firefox has this nice ability to select and inspect individual elements on a webpage. Safari has the same option but its turned off by default.
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
Disable auto-email format on copy.
When you copy and email address in Mail.app it formats the copy as ‘FirstName Last Name ” thats great except I said to copy the email address.
defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false