diff --git a/plugins/postgres-homebrew/postgres-homebrew.plugin.zsh b/plugins/postgres-homebrew/postgres-homebrew.plugin.zsh new file mode 100644 index 000000000..f9919cf1f --- /dev/null +++ b/plugins/postgres-homebrew/postgres-homebrew.plugin.zsh @@ -0,0 +1,6 @@ +# commands to control local postgres installation +# paths are for osx installation via macports + +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