Ever missed a command line tool to search and install/clone github repositories? Buh (hub backwards) aims to remedy this!
Given you have node and npm installed locally, simply run:
npm install -g buh
To search for repositories on github, simply execute:
# Simple search using keywords
$ buh search dotfiles
# Only repositories owned by user stillesjo
$ buh search dotfiles --user stillesjo
# Only repositories with javascript
$ buh search dotfiles --language javascript
You can use the result that you got from the search method when you want to install (i.e. clone) it locally.
# Install
$ buh install stillesjo/dotfiles
# This will install it to .files folder
$ buh install stillesjo/dotfiles .files
# Will install it with ssh/git-protocol
$ buh install stillesjo/dotfiles --ssh
You can also open the repository directly on github by running the open command.
# Will open http://github.com/stillesjo/dotfiles
$ buh open stillesjo/dotfiles
# Will try to open repository with the specified browser
$ buh open stillesjo/dotfiles --browser firefox
MIT