DIY My macOS
Some record for configuring macOS
Table of Contents
BACKUP
macOS作为次要操作系统很多文件都是云存储的, 只要备份好本地的一些文件即可
- 代码: 基本通过git有同步, 其余少量的通过copy完成
- 坚果云文档: 负责与Windows同步
- iCloud: 从Windows同步过来的文档在上传到iCloud
- 本地文档
- 公司超大文件
- 各个项目的密钥 / 证书
- 服务器所涉及的登录方式 / 用户名 / 密码 的文档
- SSH密钥
- IDEA
- IDEA本身的配置通过云同步
- IDEA开发用的每一条SQL console, 右键Refactor -> Copy file, 存储到项目中随Git上传
- Scratch代码
- 图片
- 视频 主力开发操作系统是Windows, 如果要重装系统, 需要提前备份好本地文件
BASE
只要连接互联网, 现有的Windows10会自动联网安装驱动, 只需要等待更新/重启
- HHKB
- Logitech Anywhere3 and OptionPlus
- iTerm2
- Chrome
vim
Basic configuration
- vimrc
- smartim_macos
- smartim_windows
1 |
|
Proxy
v2rayN or ClashX
注意对时准确, 精准到1分钟以内, 否则代理建立连接失败
XCode
– TODO
IDEA
Configuration
- 在各个项目中分别选择Java JDK环境, 不安装Java在裸机
- settsings(Ctrl+Alt+S) -> Editor -> Code Style -> SQL -> 将keywords设置为大写(To upper), and then
ctrl + alt + L
- 数据库导入时, 右键某个数据库 -> Import/Export -> Restore with ‘mysql’ -> Path to mysql ->
/usr/local/Cellar/mysql@8.0/bin/mysql
- 数据库导出时, 右键某个数据库 -> Import/Export -> Export with ‘mysqldump’ -> Path to mysqldump ->
/usr/local/Cellar/mysql-client8.0/bin/mysqldump
Plugin
- IdeaVim
- 在IDEA中创建
~/.ideavimrc
文件(实际创建在???.ideavimrc
) - 只需在最后一行增加配置引用即可
source ~/.vimrc
- IDEA中自动切换输入法暂时没搞定, macOS iTerm2倒是通过smartim搞定了, 有的用
- 在IDEA中创建
- MyBatisCodeHelperPro
- Redis
Maven
todo?
HBuilderX
- 使用其npm环境? 不安装npm在裸机可以吗? -> HBuilderX自带node.js环境
看团队用什么吧, 也不打算深究Vue, 能调试个本地前端页面就行了
DB
MySQL
1 |
|
If forget root password:
Redis
Others
常用的跨平台工具, 兼容iOS / macOS / Windows / Android
- Chrome
- Postman
- 向日葵Sunlogin
- WireShark
- Typora
- 坚果云
- Office365(Outlook, Excel, Word, PowerPoint)
- 腾讯会议
- 亿图
- Axure
- OmniPlan
- SwiftPlaygrounds
GAME
- Minecraft Java Edition