Skip to content

Instantly share code, notes, and snippets.

@ozooxo
Last active April 24, 2019 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozooxo/9321c1663c892eba516faeff4664485f to your computer and use it in GitHub Desktop.
Save ozooxo/9321c1663c892eba516faeff4664485f to your computer and use it in GitHub Desktop.
Various related to `PATH` on Mac

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment