diff options
author | yleo77 <ylep77@gmail.com> | 2013-07-16 16:37:18 +0800 |
---|---|---|
committer | yleo77 <ylep77@gmail.com> | 2013-07-16 16:37:18 +0800 |
commit | 67b2781f6200a0dff35055eb67937a0df2be2c51 (patch) | |
tree | 73b692f4146042966f7d2fed10ab88946cbc077b /plugins/postgres | |
parent | 6b832b93588567cb00b9a9e8170a5ebf539dea51 (diff) | |
parent | 7f74294d7aa7ab86e18e70a1153c15fa373c5849 (diff) | |
download | zsh-67b2781f6200a0dff35055eb67937a0df2be2c51.tar.gz zsh-67b2781f6200a0dff35055eb67937a0df2be2c51.tar.bz2 zsh-67b2781f6200a0dff35055eb67937a0df2be2c51.zip |
Merge remote-tracking branch 'robbyrussell/master'
Diffstat (limited to 'plugins/postgres')
-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 |