Awesome
zsh-pg
A ZSH plugin with utility functions to work with PostgreSQL.
Commands
pg create <name>
: create a databasepg drop <name>
: drop a databasepg ls
: list databasespg cp <origin> <target>
: make a copy of a databasepg mv <origin> <target>
: rename a databasepg kill-connections <database>
: kill all connections to a databasepg dump-table <database> <table> > file.sql
: dump table data (in form of inserts) into thefile.sql
Install
Using antibody:
$ antibody bundle caarlos0/zsh-pg
Using antigen:
$ antigen bundle caarlos0/zsh-pg
Using Fig:
Fig adds apps, shortcuts, and autocomplete to your existing terminal.
Install zsh-pg
in just one click.
<a href="https://fig.io/plugins/zsh-pg_caarlos0-graveyard" target="_blank"><img src="https://fig.io/badges/install-with-fig.svg" /></a>