Instant answers via CLI with HowDoI

Questo articolo è stato scritto oltre 1 years, il contenuto potrebbe essere datato.

xkcdThe reason for use this tool is the same as the comic.

Is very annoying search every time for found small snippet of code or the parameters for a command.

With howdoi you can search on stackoverflow and get the first result with first answer with the code.

Also the searches are cached for a fast use because the first is a little slow for the search.

Examples:

mte90@siduction:~/Desktop$ howdoi jquery ready
$(document).ready(function() { 

});
mte90@siduction:~/Desktop$ howdoi extract tar.gz
tar zxvf <yourfile>.tar.gz -C /usr/src/

The script is written in python but exist also a version in ruby and nodejs.

Support for your favourite IDE/editor? Vim or Emacs or Sublime Text extension are here.

As a conclusion exist a web version on http://bhyland.co.uk/howdoi.html.

You can download the package from pip but check on the original repo for found all the instructions and all the parameters.

Liked it? Take a second to support Mte90 on Patreon!
Become a patron at Patreon!

One thought on “Instant answers via CLI with HowDoI

Leave a Reply

Your email address will not be published. Required fields are marked *