Use psql on mac os system login, the system displays the command does not exist psql
Solutions are as follows:
Add the bin directory to postgresql environment variable can be
export PATH="/Applications/Postgres.app/Contents/Versions/9.5/bin:$PATH"
Reference links: