# some more ls aliases <!--切换到视图窗口-->alias nt=‘nautilus‘ <!--显示目录文件-->alias la=‘ls -A‘ alias ll=‘ls -alF‘ alias la=‘ls -A‘ alias l=‘ls -CF‘
<!--连接手机操作,杀死服务跟重新连接-->alias ak=‘adb kill-server‘ alias ad=‘adb devices‘
<!--管理员权限-->alias so=‘sudo -i‘
<!--手机关机-->alias ar=‘adb reboot‘ alias afr=‘adb shell killall zygote‘ alias afr1=‘cd ~/gitvanzo_team/xulei;adb push busybox system/xbin;echo "cd system/xbin;chmod 755 busybox;ln -s busybox killall;exit";adb shell‘ alias afr2=‘cd ~/git/vanzo_team/xulei;adb remount;adb push busybox system/xbin;adb shell chmod 755 system/xbin/busybox;adb shell ln -s system/xbin/busybox system/xbin/killall‘
<!--产看远程仓库中所有的平台,下拉代码用-->alias lp=‘ssh vanzo gerrit ls-projects‘
<!--从服务器下载源码到本地-->alias rg=‘repo init -u ssh://vanzo/platform_gingerbread/manifest.git‘ alias rg2=‘repo init -u ssh://vanzo/platform_gb2/manifest.git‘ alias ri=‘repo init -u ssh://vanzo/platform_ics/manifest.git‘ alias rj=‘repo init -u ssh://vanzo/platform_jb/manifest.git‘ alias rj2=‘repo init -u ssh://vanzo/platform_jb2/manifest.git‘ alias r89=‘repo init -u ssh://vanzo/platform_89/manifest.git‘ alias r72=‘repo init -u ssh://vanzo/platform_72/manifest.git‘ alias r82=‘repo init -u ssh://vanzo/platform_82/manifest.git‘ alias r92=‘repo init -u ssh://vanzo/platform_92/manifest.git‘
<!--查看log的操作-->alias ag="adb logcat -v time | grep zhangshuli" alias agF="adb logcat -v time | grep -C40 FATAL"
<!--清空代码中的patch,overlay等-->alias rc="repo forall -c ‘git clean -df;git co .‘"
<!--清空当前git下所有的未暂存修改-->alias cc="git co . | git clean -df" alias bb="cd /home/zhangshuli/git/vanzo_team/xulei/;adb remount;adb push busybox system/xbin;adb shell;cd system/xbin;ln -s busybox killall;chmod 777 busybox;" alias procrank="adb shell procrank" alias dumpsys="adb shell dumpsys meminfo"
<!--搜索文件或关键字操作-->alias gn="grep -rn" alias fn="find -name" alias art="adb remount"
<!--查看手机烧录项目信息-->alias asg="adb shell getprop | grep flavor"
<!--merge冲突处理-->alias gm="git mergetool"
<!--硬件挂载-->alias mo="adb shell mount -o remount rw /system"
时间: 2024-10-28 22:42:09