Mac设置命令别名

文件中添加

/Users/xxx/.bash_profile

添加别名命令:

alias pull='git pull origin' 注意:等号后面不能有空格

从新读取配置文件:

source ~/.bash_profile

查看别名配置:

alias
原文地址:https://www.cnblogs.com/vitasyuan/p/8645610.html