Skip to main content

All Questions

Tagged with
1 vote
2 answers
2k views

Issue with running a shell script without using 'sh' on macOS Monterey

I'm new to shell scripting and generally the usage of Terminal. I recently made a script.sh that I want to use by just typing its name without the full path. So, I wrote the path of the directory into ...
comws's user avatar
  • 13
0 votes
1 answer
153 views

How to access highlighted text with pbcopy?

How can I "catch" text that has been selected (highlighted) via shell script? It was suggested to use pbcopy. The script would be idle in the background and when a certain key combination is pressed ...
Bn.F76's user avatar
  • 134
2 votes
2 answers
2k views

On OS X, how do I start Cocoa emacs *and* bring it to front?

I wrote a little zsh function to allow me to run emacs from the command-line: function emacs() { /Applications/Emacs.app/Contents/MacOS/Emacs $@ & } This works perfectly, but it seems to ...
Jason Baker's user avatar
  • 8,672