{"repo":"kdabir/has","free":true,"listed":false,"github":"https://github.com/kdabir/has","clone":"git clone https://github.com/kdabir/has.git","description":"✅ checks presence of various command line tools and their versions on the path","language":"Shell","stars":817,"topics":["bash","check","cli","shell","commands","terminal","macos","linux","hacktoberfest","hacktoberfest2021"],"license":"MIT","category":"cli-tools","readme_excerpt":"has has checks presence of various command line tools on the PATH and reports their installed version. Quick Start 🚴 Just install 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: If everything is good has exits with status code 0 . The exit status code reflects number of commands not found on your path. And echo the status: Use has in scripts has can be used in shell scripts to check presence of tool in very readable way Pro Tip : the has in above command can be replaced with the entire curl command for to ensure portability of script → if curl -sL https://git.io/ has bash -s node then ... Installing 🚀 has is a single bash script that does it all. You can download the script and make it available on your $PATH . However, to make it even simpler, just follow one of these methods. Homebrew (MacOS) 🍺 Just run the following: Cloning the Repo Just execute the following command in a terminal: it clones has repo and installs it into your path. For a non-root installation: To update just do a git fetch or make update followed by the appropriate make install command. Downloading to a file These commands are safe to be called multiple times as well (to update has ) asdf users mise-en-place users Running directly off the Internet If you are lazy, you can run has directly off the Internet as well: ProTip : if that's too much typing every time, setup an alias in your .b","default_branch":null,"files":null,"tree":[],"storefront":"/r/kdabir","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kdabir/has/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}