文件中添加

/Users/xxx/.bash_profile

添加别名命令:

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

从新读取配置文件:

source ~/.bash_profile

查看别名配置:

alias

相关文章: