终端安装了zsh 进入~./zshrc文件 vim ~/.zshrc 在文件中添加一行: alias mysql=/usr/local/mysql/bin/mysql 按ESC输入: :wq 使~./zshrc文件生效,输入: source ~/.zshrc