Where are the Terminal settings stored on OS X?

by Kevin Suttle   Last Updated June 18, 2018 15:12 PM

You'd think A) I'd know this by now, and B) that it's readily available info, but apparently neither is the case.

What I'm looking for is where the config files (colors, etc.) that ship with Terminal are kept on the system. It'd be really handy to point to these in a /dotfiles/setup.sh file.

Am I being oblivious? I've checked the package contents of Terminal.app, but nothing is there of note. It is also noteworthy, that OS X (at least Mountain Lion) will include Terminal settings, sessions, and scripts as pre-defined search parameters in Finder, but I have found nothing.

I've searched online, and dug deep into /usr/ and /Library. Nothing. Any help would be much appreciated. Thanks.

Tags : macos terminal


Answers 1


The preferences appear to be at: ~/Library/Preferences/com.apple.Terminal.plist

See also this question on SO and another question on SU that focus on exporting the settings from one Mac and moving them to another.

For older macOS, you can edit the file directly but on newer OS (with newer being 10.9 and later) you will want to use the defaults command to write the values to the persistent database (which does back changes to the filesystem sometimes) rather than editing the file.

defaults read com.apple.Terminal

Or to write the secure keyboard entry function (as one easy example):

defaults write com.apple.Terminal SecureKeyboardEntry 1
Paul R
Paul R
September 04, 2012 17:29 PM

Related Questions


Directory highlighted in terminal

Updated April 07, 2017 13:12 PM

sudo: command not found

Updated April 29, 2017 23:12 PM

Powerline Theme in OSX terminal have a strange color

Updated December 18, 2016 08:05 AM


Mac terminal strange output on return

Updated January 06, 2017 08:05 AM