MacOS – How copy text into Terminal command line zsh

catalinacommand linecopy/pastemacoszsh

Somehow something seems to have been changed with my Zsh configuration or Terminal settings under macOS Catalina (10.15.7). If I copy some text, say from a TextEdit window, the usual paste command and shortcut-key (⌘ CommandV) no longer paste that text onto the command line in Terminal.

How to fix this so it works as expected?

Best Answer

I discovered that the problem arose from an error in my .profile, which is loaded by .zshrc. With .profile fixed, copy/paste into Terminal works normally, whether with usual Cmd-C/Cmd-V keyboard cominations or Edit menu selections.