As per [documentation](http://www.postgresql.org/docs/9.4/static/libpq-pgpass.html), if the `PGPASSFILE` environment variable is set, it should overwrite the default file location (`~/.pgpass`).