![](https://seccdn.libravatar.org/avatar/78bc146d27975a865f464af1d8c37bb2.jpg?s=120&d=mm&r=g)
Hi Stefan! On Sat, 31 Jul 1999, Stefan Troeger wrote:
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".
This is excellent, just what I also wanted to know. Saved for future reference. Sean -- Sysop and Webmaster of TCOB1 | Fidonet: 2:252/300 2:252/0 http://212.19.67.58 | Free Fidonet Feeds available telnet://212.19.67.58 2300 | Linux User: #124682 ICQ: 679813 ftp://212.19.67.58 | irc: thecivvie on irc.sysopnet.org Powered by SuSe Linux 6.0 and a 128k Tele2 connection Soon to be the father of TWINS PHORUMS online: http://212.19.67.58/phorum/