Mac – Detect Terminal Color “Theme” from Command Line

command linemacterminal

When one uses the terminal inspector, one can change many properties of the terminal, such as background color, text color, and selection color.

How can I detect what these properties have been set to from the command line?

Is there some cache or file within
"/Applications/Utilities/Terminal.app/Contents/Resources" that holds this information?

Thank you.

Best Answer

Terminal Preferences are stored in the com.apple.Terminal.plist file (/Users/$USER/Library/Preferences/com.apple.Terminal.plist) and while it can be read using the defaults command, nonetheless much of it may not be discernible.

Copy and paste the following command into a Terminal and then press Enter:

defaults read com.apple.Terminal