Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
No matter what app I am in, I would like to do a keyboard shortcut which allows me to enter a terminal command and run it, and the output will be written to wherever my cursor is, if it is in a text field.
Have you tried pbcopy? Run your Terminal command and pipe the output to your clipboard: ls -la | pbcopy. But, you can't run Terminal from within any app. If the app doesn't support it, you can't do it. What exactly are you trying to accomplish?
pbcopy
? Run your Terminal command and pipe the output to your clipboard:ls -la | pbcopy
. But, you can't run Terminal from within any app. If the app doesn't support it, you can't do it. What exactly are you trying to accomplish?