Skip to content

Instantly share code, notes, and snippets.

@phlco
Created August 20, 2013 19:43
Show Gist options
  • Save phlco/6286225 to your computer and use it in GitHub Desktop.
Save phlco/6286225 to your computer and use it in GitHub Desktop.
Fixing Postgres
# If your postgres isn't working properly
## check
- Is the elephant in your menu bar?
- Are you pointing to the correct psql?
```
$ which psql
=> /Applications/Postgres.app/Contents/MacOS/bin/psql
```
If you get something different add the following to your `.bash_profile`
```
PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH"
```
Then restart your terminal or reload your `.bash_profile`
## How do I?
Open my `.bash_profile`?
```
$ subl ~/.bash_profile
```
Reload my `.bash_profile`?
```
$ source ~/.bash_profile
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment