adding keyboard shortcuts for OSX terminal or xterm
Posted
by
I J
on Super User
See other posts from Super User
or by I J
Published on 2011-07-05T05:03:30Z
Indexed on
2012/11/13
17:04 UTC
Read the original article
Hit count: 473
Is there a way to add a keyboard shortcut for a terminal command in OSX. Basically most of the times i open the terminal app in MAC in order to ssh into a certain server foo. What I want to do is add a keyboard shortcut (say ^k) so that on a terminal when I do that, it runs "ssh foo" in the terminal.
Thanks
PS: I think if there is something for the xterm in linux then it should work for the terminal too. So this might not be an OSX specific question.
PS2: I want the shortcut to do carriage return with the "ssh foo". If its just "ssh foo", then I can write an alias in .bashrc. My goal is to minimize the number of keystrokes I've to do at the end of the day.
© Super User or respective owner