How can I create an SSH connection Terminal shortcut on Mac OS X 10.6.8 (Snow Leopard)I also have a custom port to connect to.
The shell keeps a record of the commands you run, and you can access this history with a few simple keystrokes to run commands. In the Terminal app on your Mac, press the Up Arrow key.
When your done your workflow should look like below. How do I run a command on a Mac In the Terminal app on your Mac, press the Up Arrow key. In the "Run AppleScript" action enter the flowing code: on run Īdd a variable by clicking on the little double bar icon at the bottom of the window and then right-clicking in the variables frame to create a new variable. What is the shortcut to exit Terminal in Mac Quit a shell session In the Terminal app on your Mac, in the window running the shell process you want to quit, type exit, then press Return. Typing Command-Period (.) is equivalent to entering Control-C on the command line. Again in the Actions, Library search for "Run AppleScript" and drag to the workflow area. I tried all those options, but they're too complex and unreliable or really expensive. In the top menu set "Service receives selected" to "text" in "any application".įrom the Actions, Library menu search for "Get Value of Variable" and drag to the right in the workflow area. To set up the keyboard shortcut, go to System Preferences -> Keyboard -> Shortcuts -> Services, select the service you just saved, and then click the 'Add Shortcut' button. Open Automator.app, choose to make a Service. You can achieve this by making an automator workflow and saving it as a service.