Browse Source

Add new plugin for homebrew installed version of postgres

Jeremy Tennant 11 years ago
parent
commit
f8e3f293e0
1 changed files with 6 additions and 0 deletions
  1. 6 0
      plugins/postgres/postgres.plugin.zsh

+ 6 - 0
plugins/postgres/postgres.plugin.zsh

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