summaryrefslogtreecommitdiff
path: root/plugins/postgres/postgres.plugin.zsh
blob: cdd142e92c61c8db172e72a165923b5d96b11d12 (plain)
1
2
3
4
5
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'