Check the path of one executable:
type -a postgres
Check the path:
echo $PATH
Add a path globally: Modify /etc/paths
to add a line.
Add a path for specific user: Modify ~/.zshrc
to add
export PATH="/path/to/bin/folder:${PATH}"
and source ~/.zshrc
.