启动终端Terminal进入当前用户的home目录:输入cd ~创建.bash_profile : 输入touch .bash_profile编辑.bash_profile文件:输入open -e .bash_profile输入你需要添加的内容:(例如)alias ll=’ls -alf’保存,退出更新配置: source ~/.bash_profile