31 Jul
1999
31 Jul
'99
15:42
Hi, On Sat, Jul 31, 1999 at 11:15 +0200, James (Jim) Hatridge wrote:
Is there anyway to bind a command to an F-key? For example, I use the command "fetchpop -r -p -a" to get my email. It would be nice just to be able to hit "F-x" to run this commmand. At the command line by the way, not in X-windows.
If you use the bash as your shell, you can add "\e[11~": "fetchpop -r -p -a\n" to your ~/.inputrc (this binds fetchpop... to F1). To find out which key code a key produces, press Ctrl-V and then the key at the bash prompt. If you try this with F1 you should get "^[[11~". Replace the "^[" with "\e". Ciao, Stefan