postgres.plugin.zsh 330 B

123456
  1. # Aliases to stop, start and restart Postgres
  2. # Paths noted below are for Postgress installed via Homebrew on OSX
  3. alias startpost='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start'
  4. alias stoppost='pg_ctl -D /usr/local/var/postgres stop -s -m fast'
  5. alias restartpost='stoppost && sleep 1 && startpost'