2
votes
1answer
126 views

Opening a Terminal for the current bash script, if it wasn't started in one

How can I get a script to re-launch itself in a Terminal window if it wasn't started in one? Based on this question, I've tried, in a file called testterm marked executable: #! /bin/sh if [ -t 0 ]; ...
0
votes
1answer
34 views

Opening a Terminal window with the current directory set to a specific directory

I want to set up a keyboard shortcut in Shortcuts that opens a Terminal window already cd'd to the desktop. I've tried Terminal ~/Desktop Terminal cd ~/Desktop But these don't work. Terminal ...