Robert Horvick
Robert Horvick
Husband, father, geek, brewer of hoppy beers. Robert lives near Raleigh, North Carolina with his wife and 4 kids.
  • Facebook
  • Google+
  • Twitter
Did I help you solve a problem? Do you want to say thanks? Well - how about you buy me a BTC beer?
Donate Bitcoins
Adding a custom protocol to Firefox for easy Erlang docs
July 3rd, 2009 - 2 minute read

To make getting to the Erlang docs a bit quicker I added a custom protocol handler to firefox so when I go to:

erlang://lists

I get redirected to

http://www.erlang.org/doc/man/lists.html

To do this I first created a little shell script that would take the address and spawn firefox with the appropriate url. (insert caveat about this being the first bash script I’ve written in 10 years here …).

#!/bin/bash
ERLANG_TOPIC=`echo $1 | sed 's/erlang:\/\///'`
exec firefox http://www.erlang.org/doc/man/$ERLANG_TOPIC.html

Next I marked it as executable:

chmod +x erlang.protocol

Finally I followed these directions and added the following config settings in firefox:

Adding custom protocol to firefox

Since the Erlang/OTP doc pages match their module names this works pretty well.

For queries where I’m not sure what I want I added a Erlang specific google search to my Erlang Resources page.

Tags:
comments powered by Disqus