diff options
author | Robby Russell <robby@planetargon.com> | 2013-06-16 11:49:18 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2013-06-16 11:49:18 -0700 |
commit | 4370e2ac327326cc9ba7775d861c8e8823b4771e (patch) | |
tree | d5a1a984fcb5c45d8195e66f0e80e9bcbc546c2c /plugins/postgres/postgres.plugin.zsh | |
parent | c73047e296b4448b11a906658fa7f9f27d54460a (diff) | |
parent | f8e3f293e0ae4e5890f83d9233e2829e64a04df9 (diff) | |
download | zsh-4370e2ac327326cc9ba7775d861c8e8823b4771e.tar.gz zsh-4370e2ac327326cc9ba7775d861c8e8823b4771e.tar.bz2 zsh-4370e2ac327326cc9ba7775d861c8e8823b4771e.zip |
Merge pull request #1893 from jeremydt/postgres
Add new plugin for homebrew installed version of postgres
Diffstat (limited to 'plugins/postgres/postgres.plugin.zsh')
-rw-r--r-- | plugins/postgres/postgres.plugin.zsh | 6 |
1 files changed, 6 insertions, 0 deletions
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 |