mac 修改环境变量bash_profile除了cd用不了其他命令,又关闭了终端
1.添加命令出错,会导致mac不能使用命令
2.打开终端再添加export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin 一条
3.可以使用命令,用open等打开open ~/.bash_profile 删除错误命令,保存
4.source ~/.bash_profile
1.添加命令出错,会导致mac不能使用命令
2.打开终端再添加export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin 一条
3.可以使用命令,用open等打开open ~/.bash_profile 删除错误命令,保存
4.source ~/.bash_profile
