4370e2ac327326cc9ba7775d861c8e8823b4771e
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #1893 from jeremydt/postgres
Add new plugin for homebrew installed version of postgres
Diff
1diff --git a/plugins/postgres/postgres.plugin.zsh b/plugins/postgres/postgres.plugin.zsh
2new file mode 100644
3index 0000000000000000000000000000000000000000..cdd142e92c61c8db172e72a165923b5d96b11d12
4--- /dev/null
5+++ b/plugins/postgres/postgres.plugin.zsh
6@@ -0,0 +1,6 @@
7+# Aliases to stop, start and restart Postgres
8+# Paths noted below are for Postgress installed via Homebrew on OSX
9+
10+alias startpost='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start'
11+alias stoppost='pg_ctl -D /usr/local/var/postgres stop -s -m fast'
12+alias restartpost='stoppost && sleep 1 && startpost'