Created
August 1, 2020 12:05
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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