在mac vim .bash_profile里添加
alias c=‘clear’
alias showjava=‘ps -ef |grep java’
alias tom=‘cd /Users/shangfan/Downloads/tomcat/bin;./startup.sh’
alias killtom=‘cd /Users/shangfan/Downloads/tomcat/bin;./shutdown.sh’
alias c5=‘cd /Users/shangfan/Desktop/myweb/siang/baiduo’
alias c6=‘cd /Users/shangfan/Desktop/myweb/banban/banbanjuan’
alias cdemo=‘cd /Users/shangfan/Desktop/myweb/demo’
alias ll=‘ls -l’
alias cs=‘cd /Users/shangfan/shinyway-university’
alias csf=‘cd /Users/shangfan/shinyway-university/university-frontend/src/main/resources/static’
alias mc=‘ccc ; mvn clean install’
alias cmr=‘ccm ; mvn jetty:run’
alias cwr=‘ccw ; mvn jetty:run’
alias cvr=‘cd /Users/shangfan/chemyun/chemyun-mall-frontend/chemyun-mall-wx ; mvn jetty:run’
alias cbr=‘ccb ;mvn jetty:run’
alias fin=‘mdfind -onlyin .’
alias cp=‘cd /Users/shangfan/Desktop/print’
alias reedit=‘vi ~/.bashrc’
alias reload=‘source ~/.bashrc’
alias gpl=‘git pull origin’
alias gb=‘git branch’
alias gs=‘git status’
alias gpu=‘git push origin’
alias ga=‘git add .’
alias gf=‘git fetch’
alias gc=‘git commit -m’
alias gck=‘git checkout’
alias cb=‘cd /Users/shangfan/IdeaProjects/wetime-backend’
alias cf=‘cd /Users/shangfan/IdeaProjects/wetime-frontend’
alias ll=‘ls -l’
alias cmv=‘cd /Users/shangfan/myVue’
alias ccc=‘cd /Users/shangfan/chemyun’
alias ccf=‘cd /Users/shangfan/chemyun/chemyun-mall-frontend’
alias ccw=‘cd /Users/shangfan/chemyun/chemyun-mall-frontend/chemyun-mall-web’
alias ccv=‘cd /Users/shangfan/chemyun/chemyun-mall-frontend/chemyun-mall-wx/src/main/webapp’
alias ccb=‘cd /Users/shangfan/chemyun/chemyun-mall-frontend/chemyun-mall-bos’
alias ccm=‘cd /Users/shangfan/chemyun/chemyun-mall-frontend/chemyun-mall-mall’
alias f='find ./ -name ’
alias g=’ | xargs grep’
生效 source ~/.bash_profile
执行别名即可;