_marko_
asked on
Alias for function keys?
Hi!
Is there a way to bind the function keys as aliases in .bashrc (or some other file) through a remote connection (PuTTY)? For example: when I press F1 it should automatically do an 'ssh -l user su.wopr.zebulun.fi'.
Marko
Is there a way to bind the function keys as aliases in .bashrc (or some other file) through a remote connection (PuTTY)? For example: when I press F1 it should automatically do an 'ssh -l user su.wopr.zebulun.fi'.
Marko
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
BTW, they don't work under screen :(
Oh well, I seldomly use screen anyway...
Marko
Oh well, I seldomly use screen anyway...
Marko
screen might be filtering the input stream, or it may not be using the same keymap. I don't use screen so I've never checked to see what it might do with the keymap.
ASKER
The correct lines for me are as follows:
"\e[11~":"date\r"
"\e[12~":"ssh -l user su.wopr.zebulun.fi\r"
:-)
Marko