无论是笔记本还是黑苹果都折腾了许多台了,每次拿到新电脑,对于装机总是要折腾许久。理想情况下一键初始化脚本通通搞定,现实情况下五花八门的软件,不靠谱的官方同步,等等问题总是带来很多麻烦,所以还是自己一步一步来最可靠。本文记录在初始化过程中的一些配置,一方面是备份,一方面是给其他人一些使用参考,本文会根据使用情况不断更新。
OSX
- 升级系统到最新,登录icloud
- 安装xcode开发环境
1 2 3 4 5 6
| git config --global user.name "屈定" git config --global user.name "niudear@foxmail.com" git config --global alias.ci commit git config --global alias.br branch git config --global alias.co checkout git config --global alias.st status
|
- 初始化SSH配置,该步骤主要是将对应的公钥以及私钥复制到指定目录下
- 提前创建一些必要的文件夹
1 2
| mkdir -p ~/.nvm mkdir -p ~/.zsh_history
|
1
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
1 2 3 4 5 6 7 8
| Microsoft Edge IntelliJ IDEA rime/squirrel 坚果云 sketch Notion uPic v2rayu
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install hudochenkov/sshpass/sshpass brew install telnet brew install wget brew install zsh-syntax-highlighting brew install zsh-autosuggestions brew install golang brew install nvm brew install gradle brew install graphviz brew install lua brew install gpg brew install groovy brew install cheat
brew install --cask iina brew install --cask appcleaner brew install --cask iterm2 brew install --cask flux brew install --cask maczip brew install --cask hammerspoon brew install --cask typora brew install --cask licecap brew install --cask openemu brew install --cask pixel-picker
|
IDEA
- 仓库配置
git@github.com:mrdear/IDEA-SETTING.git
,覆盖当前配置
Keymap
- Add Selection for Next Occurrence -> Ctrl + G 从光标处往下选择相同的字符
Editor -> General -> Auto import
- General -> Auto import
- insert imports on the paste: ALL
- show inports popup for: classes static method and field 全部选上
- add unambiguous imports on the fly: 开启 ,当前环境中假设一个类只有一个,那么就自动导入这个,虽然有时候会导入错误,但是往往都是正确。
- optimize imports on the fly: 开启 ,优化导包功能,会删除无用的导入指令
- Exclude from import and completion: 排除一些包,比如sun开头的以及其他不常用的包
1 2 3 4 5
| com.sun sun com.alibaba.fastjsonfordrm javax.xml javax.print
|
- Reader Mode
- Render Doc comment:关闭,选然后注释很小,看着不方便
- Inspections
- Serializable class without “SerializableUID” : 设置error告警
Plugin
- INSTALL
- .ignore
- AceJump
- CameCase
- Class Decompile
- Deno
- Emmylua
- GenerateAllSetter
- Go
- Go Template
- Key Promoter X
- Maven Helper
- MyBatisX
- PlantUML
- Toml
- IGNORE
- Android
- Smail Support
- GlassFish
- WebLogic
- WebSphere
- WildFly
- IDE Settings Sync
- IDE Features Trainer