How can I stop myself from printing my terminal

I use vscode and terminal all day at work. It's normal for my terminal to have 10,000+ lines of text. I am worried I will accidentally print my terminal, and I wonder if there's a way to prevent that from happening.

I think this is pretty likely to happen without some kind of additional safeguards. In vscode, cmd+p is how you open the prompt. So I frequently hit cmd+p, type some text, and then hit enter. I'm worried I'll accidentally do this in terminal (which would start printing 10k lines of text while I run over and unplug the printer!). I've already opened the print dialog box a few times but luckily have not hit enter.

I think ways to fix this would be 1) an additional step to open the print dialog or 2) a warning if I try to print something huge.

Unfortunately I cannot remove the printer as this is a work machine and I cannot control the printers.


Solution 1:

Add a custom shortcut for the print... menu in Terminal.app. This will overwrite the default shortcut (command-p).

enter image description here