Skip to content

Instantly share code, notes, and snippets.

@ravicious
Created August 1, 2020 12:05
Show Gist options
  • Save ravicious/b9219924e627f60f5b71e67e1bdc601f to your computer and use it in GitHub Desktop.
Save ravicious/b9219924e627f60f5b71e67e1bdc601f to your computer and use it in GitHub Desktop.
Postgres.app: Change path to command line utilities based on the currently running version of the Postgres server
# Change path to Postgres.app command line utilities based on the version of Postgres that's currently running.
export PATH="/Applications/Postgres.app/Contents/Versions/$(psql -c 'show data_directory;' | perl -n -e '/Postgres\/var-(.+)$/ && print $1')/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment