Get direnv installed on Mac using Brew

Package Information:

Name: direnv
Use: Load/unload environment variables based on $PWD
URL: https://direnv.net/

Installation Steps:

  1. Open Terminal.
  2. Run the following command

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  3. Install direnv using brew
    brew install direnv

direnv is ready to use now!