Link to home
Start Free TrialLog in
Avatar of _marko_
_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
ASKER CERTIFIED SOLUTION
Avatar of jlevie
jlevie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of _marko_
_marko_

ASKER

Yes! Thank you!

The correct lines for me are as follows:

"\e[11~":"date\r"
"\e[12~":"ssh -l user su.wopr.zebulun.fi\r"

:-)


Marko
Avatar of _marko_

ASKER

BTW, they don't work under screen :(

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.