I do a lot of remote programming on my CentOS linux server by opening an X11 xterminal window on my Mac OS, and SSH into the server. I'm looking for an easy to use method to enter a predefined text string when hitting a customized hotkey.
For example, instead of manually typing:
# cd /home/users/jim/jcode/algorithms/applications
I'd like to type something like command-A, or enter a custom key sequence like ";app" at the command line and have it be replaced with the text above.
I tried various programs like TextExpander (http://smilesoftware.com/textexpander/faq.html), on my mac, but they don't support X11 xterminals.
Anyone know of a good way to achieve this?
# ~/glassfish3/bin/asadmin
thenasadmin> restart-domain --port 1234
. Once I'm at theasadmin>
prompt, the Bash binding aren't recognized. I'd need something listening to the xterm key commands to replace them with some predetermined text.asadmin <<<'restart-domain --port 1234'
then? Of course, this still doesn't solve the general problem.asadmin>
command prompt by pressing Escape-a (since the .inputrc file contains:"\ea":"~/glassfish3/bin/asadmin\n"
)., then trying to press Escape-r to run the following command in .inputrc file:"\er":"restart-domain --port 1234\n"
. What should I be trying instead?