Wednesday, 28 September 2016

Prevent terminal in osx from copying style when copying text.

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

No comments:

Post a Comment