Apple - Text copied from Terminal with formatting in Mavericks (10.9), Yosemite (10.10), and El Capitan (10.11)

You can disable copy/pasting the formatting from Terminal by changing the com.apple.Terminal preferences file.

Open Terminal on your Mac and enter the following command: defaults write com.apple.Terminal CopyAttributesProfile com.apple.Terminal.no-attributes

This will strip all text attributes out of copy/pasting from Terminal


Just use 'Paste Matching Style'

enter image description here

Which will keep the formatting as the same as the insertion point

So instead off:

enter image description here

You would get:

enter image description here


In El Capitan, you can set the formatting in Terminal app. Simply select Edit -> Copy Special and select Plain Text for no formatting or you can create a profile that looks good when pasted in a document.