1、编辑 ~/.bash_profile 命令如下: vi ~/.bash_profile 内容修改如下: # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=