has/README.md

39 lines
781 B
Markdown
Raw Normal View History

# has
2014-03-04 23:16:26 +01:00
`has` helps you check presence of various command line tools on path.
2014-03-04 23:16:26 +01:00
2015-03-02 05:28:18 +01:00
## How ?
2014-03-04 23:16:26 +01:00
Download the `has` file. There is no dependency apart from `bash` itself
2014-03-04 23:16:26 +01:00
$ 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
2014-03-04 23:16:26 +01:00
2017-08-28 18:57:04 +02:00
## 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
2014-03-04 23:16:26 +01:00
### ♥