https://github.com/remino/omz-plugin-mysql-alias
Plugin for Oh My Zsh to add alias for MySQL with login path
https://github.com/remino/omz-plugin-mysql-alias
mysql ohmyzsh shell zsh
Last synced: 6 months ago
JSON representation
Plugin for Oh My Zsh to add alias for MySQL with login path
- Host: GitHub
- URL: https://github.com/remino/omz-plugin-mysql-alias
- Owner: remino
- License: isc
- Created: 2022-09-29T01:23:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-21T23:02:06.000Z (over 1 year ago)
- Last Synced: 2025-09-11T23:28:07.726Z (8 months ago)
- Topics: mysql, ohmyzsh, shell, zsh
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-zsh-plugins - mysql-login - Adds alias for MySQL with login path. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - mysql-login - Adds alias for MySQL with login path. (Plugins / ZSH on Windows)
README
omz-plugin-mysql-alias
======================
Plugin for Oh My Zsh to add alias for MySQL with login path.
When enabled, the login path can be specified using an @ sign. For example:
```sh
mysql @production -D main
# The above is the same than:
mysql --login-path=production -D main
```
## Installation
First, clone the repo:
```sh
git clone https://github.com/remino/omz-plugin-mysql-alias.git "$ZSH_CUSTOM/plugins/mysql-alias"
```
Second, add `mysql-alias` to your Oh My Zsh plugins:
```
plugins+=(mysql-alias)
```
Finally, restart your shell.