MacOS
Tips, tricks and information about developing on MacOS. In particular my configuration.
Opening a new keyboard terminal window with a global keyboard shortcut
Create a shell script
In your home directory create a new shell script – term.sh in my case – with the following content:
#!/bin/bash
open -a Terminal ~
Add executable permissions to this file: chmod +x term.sh.
Test this script by executing ./term.sh in a terminal. When a new terminal window is opening, the script works.
Add a quick action with "Automator"
Next, open the "Automator" app and create a new workflow.
- Select "Quick Action"
- Select "No Input" and "Any program"
- On the left under "Library > Utilities" search for "Execute Shell Script"
- Enter
~/term.shin the box
Press "Run" at the top to test the service. If it works, save it under a name you will easily recognize again.
Add a keyboard shortcut
- Under "System Preferences > Keyboard > Shortscuts" select "Services"
- Find your quick action in the list, mine was under "General"
- Double click at the end of the line and add a keyboard shortcut. I chose Cmd+Shift+Ctrl+Opt+T so that I hopefully won't have any conflicts.
Test your keyboard shortcut!