本人很懒,代码不想多打几个,当然也是为了提高工作效率,所以在 .bashrc文件中 自定义一些快捷命令;
在.bashrc 中 alias是必要的,它是可以自定义的关键,如果要了解alias,请百度~
###############Archer code customization
alias th=’touch’
alias mk=’mkdir’alias glog=’git lg’
alias gst=’git status’
alias gad=’git add .’
alias gac=’git add . && git commit’
alias gcm=’git commit’
alias gpr=’git pull –rebase’
alias gbr=’git branch’
alias grh=’git reset –hard’#启动Android_studio
alias android_studio=/home/archer/Android/android-studio/bin/studio.sh#启动Hierarch Viewer视图工具
alias hierarchviewer=/home/archer/Ubuntu12.04/android-sdk-linux/tools/hierarchyviewer#启动Flash tool刷机工具
alias sj=’sudo /home/archer/flash_tool/flash_tool.sh’#切换jdk
alias jdkchange=’/home/archer/Documents/jiaoben/changejdk.sh’#检测代码冲突工具
alias coc=’/home/archer/Documents/jiaoben/checkClash_150420.pl’#进入经常到的目录下
alias cmt=’cd /home/archer/workspace/COMMIT/’############### ADB shell ###############
alias adbr=’adb remount’
#下面是一个自定义的函数,是命令执行: 截图+导出
#操作方法: terminal下 执行命令” androidshot SSP_Name”
# For Android Device Screenshotfunction
androidshot() {
adb shell screencap -p /sdcard/$1.png && adb pull /sdcard/$1.png ~/
}# adb pull 大量截屏图片出来
alias adbpss=’adb pull /storage/emulated/0/Pictures/Screenshots/$(wildcard *.png) ./’############## Add end by archer #####################