Adding a custom protocol to Firefox for easy Erlang docs
To make getting to the Erlang docs a bit quicker I added a custom protocol handler to firefox so when I go to:
I get redirected to
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:
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.