idea 用iterm 终端_mac下终端(iterm2)自己配置的快捷命令

本文介绍了如何在Mac上使用iTerm2配置个人化的快捷命令,包括清理屏幕、查看Java进程、Tomcat的启动与关闭、切换目录以及Git操作等。通过编辑.bash_profile文件并添加自定义别名,可以提升开发效率。
摘要由CSDN通过智能技术生成

在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

执行别名即可;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值