For macOS installations:
- Add the following line to the ~/.bashrc or ~/.bash_profile file if you are using bash (or an equivalent for other shells): export PATH=<required directory>:$PATH
- Confirm that the directory is added: echo $PATH
For Windows installations:
- From the Control Panel, click and add the required directory to the PATH variable.
- From a new command window, confirm the directory is added: echo %PATH%