Making Raggle use your default browser on Mac OS X
Raggle is a swell console/terminal-based RSS client I mentioned a while ago (nearly two years ago to the day — weird!). Like any RSS program, it will allow you to open a link or feed item in a regular web browser. Since it’s in the terminal, that may not work as desired, opening them in a console web browser like ELinks or not opening them at all.
On Mac OS X, getting Raggle to open up those links in your default web browser is easy thanks to the /usr/bin/open command.
Raggle preferences and other files are stored under ~/.raggle so navigate there in your terminal. It doesn’t create your custom configuration file automatically, so just start a new text file there called “config.rb” (Raggle is a Ruby program, thus the .rb).
(You can change pretty much any behavior you want using this file; check out the doc/default_config.rb that came with your Raggle download for full examples.)
Customizing the browser is really simple. Here’s all you’ll need in the config.rb file:
$config = {
'browser_cmd' => ['/usr/bin/open', '%s'],
}
And that’s it!
