Force Safari to always open targeted links in a new tab

I always forget this one, so I thought I’d post it here.

To force Safari to open a targeted link in a new tab instead of a new window, open terminal, and type:

defaults write com.apple.Safari TargetedClicksCreateTabs -bool true

Restart Safari, and you’re done.