标签:php sbin alias col nbsp mysql pre usr path
1. 在命令行下无法使用ll命令
需要设置命令的别名。 文件位置:~/.bash_profile
source ~/.profile export PATH="/usr/local/opt/php@7.2/bin:$PATH" export PATH="/usr/local/opt/php@7.2/sbin:$PATH" export PATH="usr/local/opt/mysql@5.7/bin:$PATH" alias readlink=greadlink alias ll=‘ls -alF‘
保存重新加载配置: source ./bash_profile
但有时会出现无法找到.profile文件的情况,需要编辑.bash_profile
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin export PATH="/usr/local/opt/php@7.2/bin:$PATH" export PATH="/usr/local/opt/php@7.2/sbin:$PATH" export PATH="usr/local/opt/mysql@5.7/bin:$PATH" alias readlink=greadlink alias ll=‘ls -alF‘
重新加载配置即可
标签:php sbin alias col nbsp mysql pre usr path
原文地址:https://www.cnblogs.com/xingxia/p/Mac_problems.html