minor updates

This commit is contained in:
Kunal Dabir 2019-07-13 14:21:20 +05:30 committed by GitHub
parent 754a4e444c
commit a788fdf6b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -7,9 +7,9 @@
[![demo](demo.svg)](demo.svg)
## Quick Start
## Quick Start 🚴
Just [Install](#installing) the `has` script, there is no dependency apart from `bash` itself. For the command line, just pass the list of commands you want to check as arguments to `has`, for example:
Just [install](#installing) the `has` script, (there is no dependency apart from `bash` itself). From the command line, pass the list of commands you want to check as arguments to `has`, for example:
```console
$ has node npm java git gradle
@ -51,9 +51,9 @@ fi
## Installing 🚀
`has` is a single bash script that does it all. Just [download](https://raw.githubusercontent.com/kdabir/has/master/has) the script and make it available on your `$PATH`. However, to make it even simpler, just follow *one* of these methods.
`has` is a single bash script that does it all. You can [download](https://raw.githubusercontent.com/kdabir/has/master/has) the script and make it available on your `$PATH`. However, to make it even simpler, just follow *one* of these methods.
### Homebrew (MacOS)
### Homebrew (MacOS) 🍺
Just run the following:
@ -123,6 +123,8 @@ Let's say `$ has foobar` returns `foobar not understood`, because `has` may not
In such cases, pass `HAS_ALLOW_UNSAFE=y has foobar`. This should still check for existance of `foobar` and tries to detect version as well.
> the value must exactly be `y` for it to work.
## The `.hasrc` file
`has` looks for `.hasrc` file in the directory from where `has` command is issued. This file can contain commands that `has`