https://android.googlesource.com/platform/build/+/android-4.4.3_r1/envsetup.sh

在~/.bashrc里面增加:

#Android tool
function cgrep()
{
find . -name .repo -prune -o -name .git -prune -o -type f \( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.h' \) -print0 | xargs -0 grep --color -n "$@"
}
function mgrep()
{
find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -regextype posix-egrep -iregex '(.*\/Makefile|.*\/Makefile\..*|.*\.make|.*\.mak|.*\.mk)' -type f -print0 | xargs -0 grep --color -n "$@"
}

 

重新source ~/.bashrc,就可以在任何shell界面使用android的这两个工具了。

最新文章

  1. Android基础总结(四)
  2. .net post的参数如果出现乱码如何解决!
  3. 获取View到顶部的高度
  4. 1、Python环境安装部署
  5. js 变量提升和函数提升原理
  6. Spring3 表达式语言(SpEL)介绍
  7. OpenGL 简介
  8. 怎样开发Chrome浏览器的插件
  9. php 执行linux 命令函数
  10. C# 语言的两个html解析器
  11. let和const关键词
  12. 秒懂JS对象、构造器函数和原型对象之间的关系
  13. bzoj3728: PA2014Final Zarowki
  14. dos脚本2
  15. ES6数字操作
  16. 网页排版的时候不要忘了table标签
  17. YUM软件包额外扩展了解项
  18. 《Java程序设计》第12周课堂实践总结
  19. axios post 踩坑之 post传参
  20. Java并发编程(二)为什么需要多线程

热门文章

  1. C# 图片进行马赛克处理
  2. meshing-风火轮
  3. node.js 简易聊天室
  4. html中第一行是什么意思
  5. legend3---开发总结1
  6. 网站url路径优化方法完全讲解 (url优化、基于tp5、API接口开发)
  7. ISO/IEC 9899:2011 条款6.4.9——注释
  8. 机器学习 - 算法 - Xgboost 数学原理推导
  9. IfcAxis2Placement3D IFC构件的位置和方向
  10. MySQL数据库备份之xtrabackup工具使用