defaults(1) is a Mac OS console application used to manage user preferences stored in property list files.

learn more… | top users | synonyms

37
votes
7answers
52k views

How to always show menubar with fullscreen apps?

Does anyone know if it is possible to keep the menubar in Mac OS Lion visible for fullscreen apps instead of hidden until hovered over with a mouse or trackpad? I imagine there's some Terminal ...
9
votes
2answers
5k views

How to change tap to click using “defaults write” from command line?

I want to change the trackpad tap-to-click property from the command line. Graphically, I can do it by clicking System Preferences -> Trackpad -> Tap to Click. How can I do it from the command line? ...
10
votes
4answers
1k views

How do I change the location of screen captures?

As a developer, I take a lot of screen captures. I often take a lot to share with StackExchange members on chat. The problem is my desktop is so cluttered with screen captures that they're now ...
17
votes
7answers
67k views

Move 'Pictures', 'Documents', 'Movies' etc folders

I would like to move folders like 'Pictures', 'Documents', 'Movies' to a different from the default under the root of user's home location, preferably into a sub-folder under the same user's home ...
10
votes
6answers
5k views

How to list all available .plist keys on a certain domain application by defaults command?

I want to know all keys (property list) which available on certain domain application, as example I could list available key for com.apple.dock by entering this command: $ defaults read com.apple....
15
votes
3answers
9k views

Change default shell from bash to zsh

I've tried to switch my default shell to zsh, using chsh: chsh -s /bin/zsh and: chsh -s `which zsh` Both commands ended with: Changing shell for adamatan. Password for adamatan: chsh: ...
2
votes
1answer
2k views

Toggle Natural scrolling from command line with reload

I'm looking to make a script that quickly toggles the Natural scrolling settings, so I need a way to do it from the command line. I think I found the correct defaults command, but I'm not sure how to ...
2
votes
1answer
2k views

How to map the bottom right Trackpad corner to right-click programmatically?

I’m looking for a command (defaults write …) to enable right-click by tapping the bottom right Trackpad corner. This can be enabled as follows: System Preferences → Trackpad → Point & Click → ...
2
votes
4answers
3k views

Default background color in Textedit

How do I set default background color in Textedit? Preferences -> New Document -> Font doesnt help. That black on white isn't too good in nights.
2
votes
2answers
1k views

Command Line method to backup using two Time Machine disks

Does anyone know of a command line method to select the active Time Machine disk? I would like to alternate between two backup disks for redundancy. I would like this to be automated, presumably via ...
10
votes
1answer
960 views

How can I disable the delay + minimum distance when deleting icons from the Dock by dragging in Mountain Lion?

As you all know, Dock icons can be removed by simply clicking them and dragging them out of the Dock. As soon as the “poof” animation appears, you can release the mouse button to remove the icon. ...
33
votes
1answer
6k views

Set the default search to current folder?

The Finder's search bar is an integral part of my workflow. I am constantly using it to search the contents of files within various folders. However, typing into this bar always searches the entire ...
4
votes
3answers
9k views

How to set default finder window size?

How do I set the default size of my finder window to a size of my choice? Currently each time I open a finder window, it opens up in a very small size and I have to adjust it before I can start ...
2
votes
1answer
789 views

How to apply written defaults to a Magic Mouse (com.apple.driver.AppleBluetoothMultitouch.mouse)?

Running OSX 10.7.4 I wrote a script to swap Apple Magic Mouse secondary click. The following simple bash script do modify the system preferences (can be seen in System Preferences GUI), but the mouse ...
2
votes
1answer
282 views

How do I succeed setting sublime text 3 as a default text editor on Yosemite? [duplicate]

It's a matter of principle for me as I'm struggling with it for a long time. I had this issue back on Mavericks and now on Yosemite 10.10.5. What I'm trying to do is to set Sublime text 3 as a ...
4
votes
1answer
1k views

How to I set the scroll direction to be “non” natural for any new users created on a Lion machine?

When a new user account is created on a Lion machine, a "helpful" dialog appears to describe "Natural" scrolling. I want to set the scrolling to be "unnatural" for any new users created - is there a ...
2
votes
1answer
74 views

Update Preferences Panel after using default write

I am using default write to set/unset Block all incoming connections option of OSX firewall. sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 2 sudo defaults write /Library/...
1
vote
2answers
898 views

Temporarily disable Notification Center in Mountain Lion from command line?

I've been trying to create a script to disable/enable the Notification Center, even if it's temporary. It should do the same as manually sliding the Notification Center, scrolling up, and toggling the ...