Go to file
Kunal Dabir cbf7cb3dbb Merge branch 'master' into has 2017-08-28 22:34:38 +05:30
.editorconfig adding usual suspects for project root 2015-02-12 19:28:24 +05:30
.gitattributes adding usual suspects for project root 2015-02-12 19:28:24 +05:30
.gitignore adding usual suspects for project root 2015-02-12 19:28:24 +05:30
.hastest.bats node was not there on travis, git must be :) 2017-08-28 22:10:04 +05:30
.travis.yml add basic tests and travis config 2017-08-28 21:37:44 +05:30
LICENSE update license 2017-08-28 21:11:51 +05:30
README.md update installation instrcutions 2017-08-28 22:27:04 +05:30
has First cut of `has` 2017-08-28 21:11:32 +05:30

README.md

has

has helps you check presence of various command line tools on path.

How ?

Download the has file. There is no dependency apart from bash itself

$ bash has node npm java git gradle 
✔ node 8.2.1
✔ npm 5.3.0
✔ java 1.8.0
✔ git 2.14.1
✔ gradle 4.0.1

Installing

Just download the has script in your path.

If you are lazy, you can has of the internet as well

curl -sL https://raw.githubusercontent.com/kdabir/has/master/has | bash -s git node npm
✔ git 2.14.1
✔ node 8.2.1
✔ npm 5.3.0

And if that's too much of typing everytime, setup an alias

alias has="curl -sL https://raw.githubusercontent.com/kdabir/has/master/has | bash -s"

And uses it

$ has git
✔ git 2.14.1