Mysterious ghost typing
Whenever I type the word ‘test’, it gets instantly and automatically replaced with ‘echo "test"’. I think this was something I did myself a while ago (I’ve been learning to program in Python) but I can’t remember what it was and I can’t find how to remove it. Dan Strickland It sounds like you have added an autocorrect substitution. You can delete this in the Text tab of the Keyboard preferences pane. You can also see the same autocorrect entries via Terminal using
(Before Mavericks, the preference file was NSUserReplacementItems.) So it’s possible your programming experiments added a new entry using the ‘defaults write’ command. Text substitutions only take effect in places where ordinary text is expected though, like in Notes or TextEdit. They won’t work their magic in Safari’s address field, for example.