浏览代码

Merge pull request #1893 from jeremydt/postgres

Add new plugin for homebrew installed version of postgres
Robby Russell 11 年之前
父节点
当前提交
4370e2ac32
共有 1 个文件被更改,包括 6 次插入0 次删除
  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'