Skip to content

voronkovich/mysql.plugin.zsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mysql.plugin.zsh

ZSH plugin for MySQL.

Installation

antigen bundle voronkovich/mysql.plugin.zsh
zplug "voronkovich/mysql.plugin.zsh"
git clone https://github.com/voronkovich/mysql.plugin.zsh ~/.oh-my-zsh/custom/plugins/mysql

Edit .zshrc to enable the plugin:

plugins=(... mysql)

Manual

Clone this repo and add this into your .zshrc:

source path/to/cloned/repo/mysql.plugin.zsh

Add your mysql credentials into the ~/.my.cnf:

[client]
user=your_user
password=your_password

Aliases and functions

  • my - alias for mysql;
  • mys - alias for mysqlshow;
  • mycu - create a new user;
  • mydu - drop a user;
  • mycd - create a new database;
  • mydd - drop a database;
  • mycud - create a new user and a database with the same name;
  • mydud - drop a user and a database with the same name;
  • mysu - show all users;
  • mytd - truncate all tables in the specified database;

License

Copyright (c) Voronkovich Oleg. Distributed under the Unlicense.

About

ZSH plugin for MySQL.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages