Anroid 开发小技巧 | linux下懒人快捷Terminal命令
2017-07-07 17:15
369 查看
本人很懒,代码不想多打几个,当然也是为了提高工作效率,所以在 .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 #####################
在.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 #####################
相关文章推荐
- python 常用技巧 1.设置pip国内源 2.打开服务器上的图像界面3.创建linux命令的快捷方式4.中文编码
- 开发中linux很实用命令和小技巧
- linux常用开发命令
- linux常用命令及技巧
- 实用技巧:Linux系统下VI命令快捷键集合(16)
- Linux开发中的常用命令
- Linux开发中的常用命令
- Linux开发中的常用命令
- Linux常用命令使用技巧(2)
- Linux入门教程——第二章 Linux常用基本命令及应用技巧
- Linux常用基本命令及应用技巧
- [开发技巧] Java调用可执行程序和批处理命令
- Linux开发中的常用命令
- [转帖]嵌入式LINUX开发必须掌握的命令集
- Linux常用基本命令及应用技巧1
- Linux命令使用技巧集锦
- 转]Linux命令使用技巧集锦
- Ubuntu Linux系统备份与还原命令技巧
- Linux FTP命令详解及使用技巧
- Linux开发中的常用命令