Skip to content

Instantly share code, notes, and snippets.

@phadej
Created September 21, 2014 06:51
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 phadej/040264ed4e6b453a6712 to your computer and use it in GitHub Desktop.
Save phadej/040264ed4e6b453a6712 to your computer and use it in GitHub Desktop.
Just source env-postgres-osx.sh to add psql to the PATH
POSTGRES_BIN=/Applications/Postgres.app/Contents/Versions/9.3/bin
if [ -d $POSTGRES_BIN ]; then
export DATABASE_URL=postgres:///`whoami`
export PATH=$PATH:$POSTGRES_BIN
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment