Simple I am looking for a way to map a keyboard key to a unix command. It could be as simple as literal as opening up terminal and pasting a required bit of text.
Map keyboard key to unix command
keyboardmappingterminalunix
Related Question
- MacBook – Keyboard acts as if the Command key is depressed 100% of the time
- How to map the “Eject” key on a Microsoft keyboard or create a new shortcut for locking the screen
- MacOS – How to map a Mac function to an ‘unfindable’ Windows keyboard key
- Terminal: map super/command key in stty
- Using hidutil to map two keys to a single key
- How to map a terminal command to a function key
Best Answer
You could use a tool like Keyboard Maestro but it might be a bit overkill.
If you just want to execute a command in Terminal and close the window again:
chmod +x ...
)