Mac 永久添加命令别名
修改 ~/.zshrc 文件内容即可
vi ~/.zshrc
source ~/.zshrc
alias cdhome='cd ~'
alias cdroot='cd /'
alias gpull='git pull'
alias gci='git commit -a'
alias gpush='git push origin HEAD:refs/for/master'
alias gst='git status'
alias nrs='npm run start'
alias nrb='npm run build'
Comments