Home.md
... ...
@@ -5,3 +5,4 @@ This wiki is a collection of information worth sharing with the world!
5 5
## Index
6 6
7 7
- [Resources about Git](./Git)
8
+- [MacOS](./MacOS)
MacOS.md
... ...
@@ -0,0 +1,38 @@
1
+# MacOS
2
+
3
+Tips, tricks and information about developing on MacOS. In particular my configuration.
4
+
5
+## Opening a new keyboard terminal window with a global keyboard shortcut
6
+
7
+### Create a shell script
8
+
9
+In your home directory create a new shell script – `term.sh` in my case – with the following content:
10
+
11
+```bash
12
+#!/bin/bash
13
+open -a Terminal ~
14
+```
15
+
16
+Add executable permissions to this file: `chmod +x term.sh`.
17
+
18
+Test this script by executing `./term.sh` in a terminal. When a new terminal window is opening, the script works.
19
+
20
+### Add a quick action with "Automator"
21
+
22
+Next, open the "Automator" app and create a new workflow.
23
+
24
+- Select "Quick Action"
25
+- Select "No Input" and "Any program"
26
+- On the left under "Library > Utilities" search for "Execute Shell Script"
27
+- Enter `~/term.sh` in the box
28
+
29
+Press "Run" at the top to test the service. If it works, save it under a name you will easily recognize again.
30
+
31
+### Add a keyboard shortcut
32
+
33
+- Under "System Preferences > Keyboard > Shortscuts" select "Services"
34
+- Find your quick action in the list, mine was under "General"
35
+- 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.
36
+
37
+Test your keyboard shortcut!
38
+