From the course: PostgreSQL: Client Applications

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Set path on macOS

Set path on macOS

- [Instructor] On macOS, the PostgreSQL command line tools are accessed through the Terminal application. You can find that by going into your Applications folder, scrolling down to the bottom until you get to the utility sub folder. And inside of there, you'll find the Terminal app. I've already added that into my Dock. So I'll close this down and we'll start it up. Now, if you try and run the psql tool by itself, just by typing in its name, at first, the computer isn't going to be able to locate it. You can see what locations your computer is looking in for valid commands by running "echo $PATH". These shows all of the system paths that are used on my computer. And you might see a few more on your system. We need to add the PostgreSQL bin folder to this list. In macOS Catalina, Apple switched the default shell environment to use Z shell. So I need to add to my Z shell environment. The file that we need to modify is in our user home folder. And it's called .zshenv. I'm going to try…

Contents