Mac添加命令 打开终端 vim ~/.bash_profile 在里面输入要添加的命令,例如: alias ll='ls -l' 添加完成后,保存退出后 source ~/.bash_profile 执行后,在命令行输入就可以使用了