1. 关于git配置,可参考
http://blog.csdn.net/matrixhero/article/details/8214156
另外推荐一个git图像化的工具sourcetree:
https://www.sourcetreeapp.com/
2.关于shell ,内置的shell功能稍微单一,对于开发来说支持不够
推荐一个终极 Shell:oh-my-zsh,比默认的shell好使太多,https://github.com/robbyrussell/oh-my-zsh |
介绍:http://macshuo.com/?p=676
ubtuntu参考:http://blog.sina.com.cn/s/blog_631d3a630102uxtv.html
3. 关于.ssh文件迁移到mac下
迁移完后发现一直提示有问题:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0740 for '/Users/jackshy/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /Users/jackshy/.ssh/id_rsa
Permission denied (publickey).
fatal: Could not read from remote repository.
这时候需要修改文件的id_rsa权限:
chmod 0600 id_rsa
即可。
4. 配置adb
1). 启动终端Terminal2). 输入 cd ~
3). 输入 echo $HOME
4). 创建.bash_profile( 注意:如果是zsh命令下则需要修改~目录下的 .zshrc 文件做编辑才可能全局生效), 可使用 vi .bash_profile (如果已存在,则自动编辑;如不存在,则自动新建)
5). 输入 export PATH=${PATH}: dir1 : dir2(其中红字为必须输入,dir1, dir2之间用:相隔,dir1为Android SDK下的 tools 目录路径,dir2为Android SDK下的 platform-tools 目录路径<使用pwd可以直接显示路径全称>)
6). 按 esc 键 --> :wq保存该文件。
7). 输入 source .bash_profile 更新刚配置的环境变量。
8). 验证配置是否成功 adb shell
成功会提示 root@android:/ #