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

configure
  • vimrc
  • smartim_macos
  • smartim_windows
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 查看macOS默认的输入法是什么, 以决定如下的配置文件中`let g:smartim_default = ''`中的内容
~/.vim/bundle/smartim/plugin/im-select
> com.apple.keylayout.ABC

vim ~/.vimrc

> ...
> "call vundle#begin('~/some/path/here')
> 
> " smart switch input method automaticlly
> Plugin 'ybian/smartim'
> let g:smartim_default = 'com.apple.keylayout.ABC'
> 
> " All of your Plugins must be added before the following line
> call vundle#end() 
> ...

Proxy


v2rayN or ClashX

注意对时准确, 精准到1分钟以内, 否则代理建立连接失败

XCode

– TODO

IDEA


Configuration

  • 在各个项目中分别选择Java JDK环境, 不安装Java在裸机
  • settsings(Ctrl+Alt+S) -> Editor -> Code Style -> SQL -> 将keywords设置为大写(To upper), and thenctrl + 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搞定了, 有的用
  • MyBatisCodeHelperPro
  • Redis

Maven

todo?

HBuilderX


  • 使用其npm环境? 不安装npm在裸机可以吗? -> HBuilderX自带node.js环境

看团队用什么吧, 也不打算深究Vue, 能调试个本地前端页面就行了

DB


MySQL

Install
1
brew install mysql@8.0

If forget root password:

Reset

Redis

Others


常用的跨平台工具, 兼容iOS / macOS / Windows / Android

  • Chrome
  • Postman
  • 向日葵Sunlogin
  • WireShark
  • Typora
  • 坚果云
  • Office365(Outlook, Excel, Word, PowerPoint)
  • WeChat
  • 腾讯会议
  • 亿图
  • Axure
  • OmniPlan
  • SwiftPlaygrounds

GAME


  • Minecraft Java Edition