# zsh-pg [![Build Status](https://travis-ci.org/caarlos0/zsh-pg.svg?branch=master)](https://travis-ci.org/caarlos0/zsh-pg) A ZSH plugin with utility functions to work with PostgreSQL. # Commands - `pg create `: create a database - `pg drop `: drop a database - `pg ls`: list databases - `pg cp `: make a copy of a database - `pg mv `: rename a database - `pg kill-connections `: kill all connections to a database - `pg dump-table > file.sql`: dump table data (in form of inserts) into the `file.sql` # Install ### Using antibody: ```sh $ antibody bundle caarlos0/zsh-pg ``` ### Using antigen: ```sh $ antigen bundle caarlos0/zsh-pg ``` ### Using Fig: [Fig](https://fig.io) adds apps, shortcuts, and autocomplete to your existing terminal. Install `zsh-pg` in just one click. # Thanks to - [original idea](https://github.com/juanibiapina/pg)