From f8e3f293e0ae4e5890f83d9233e2829e64a04df9 Mon Sep 17 00:00:00 2001 From: Jeremy Tennant Date: Sun, 16 Jun 2013 14:04:02 +1000 Subject: [PATCH] Add new plugin for homebrew installed version of postgres --- plugins/postgres/postgres.plugin.zsh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 plugins/postgres/postgres.plugin.zsh diff --git a/plugins/postgres/postgres.plugin.zsh b/plugins/postgres/postgres.plugin.zsh new file mode 100644 index 000000000..cdd142e92 --- /dev/null +++ b/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' \ No newline at end of file