Featured image of post macmini安装记录

macmini安装记录

macmini安装记录

第一步:安装APP

  1. Synergy 共享键鼠
  2. iTerm 终端
  3. SourceTree git客户端
  4. SmartSVN svn客户端
  5. ParallelsDesktop 虚拟机
  6. loginputmac2 落格输入法2
  7. GPG_Suite gpg工具 (个人签名需要导出导入)
  8. FileZilla ftp客户端
  9. draw.io 流程图工具
  10. SekaiVPN vpn
  11. Chrome 浏览器
  12. SetApp 包月的应用市场
  13. Xcode
  14. AndroidStudio
  15. VSCode
  16. PopClip (App Store)
  17. WPS (App Store)

第二步:SetApp安装的App

  1. Bartender 菜单栏图标管理
  2. Expressions 正则工具
  3. CoreShell ssh工具
  4. SSH Config Editor ssh的config编辑工具
  5. Permute 音视频转换工具
  6. Downie 网站视频下载工具
  7. CleanMyMac X 垃圾清理工具
  8. Archiver 压缩工具
  9. PixelSnap UI测量工具
  10. Squash 图像压缩工具
  11. Mosaic 窗口管理工具

第三步:brew 安装常用命令

安装 brew (命令行安装工具)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# 安装 brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

# brew 程序本身
git -C "$(brew --repo)" remote set-url origin https://mirrors.cloud.tencent.com/homebrew/brew.git

# 以下针对 mac OS 系统上的 Homebrew
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.cloud.tencent.com/homebrew/homebrew-core.git
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.cloud.tencent.com/homebrew/homebrew-cask.git
git -C "$(brew --repo homebrew/cask-fonts)" remote set-url origin https://mirrors.cloud.tencent.com/homebrew/homebrew-cask-fonts.git
git -C "$(brew --repo homebrew/cask-drivers)" remote set-url origin https://mirrors.cloud.tencent.com/homebrew/homebrew-cask-drivers.git

# 更换后测试工作是否正常
brew update

# 长期替换 Homebrew Bottles 源
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.cloud.tencent.com/homebrew-bottles

换回 Homebrew 官方源

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# brew 程序本身
git -C "$(brew --repo)" remote set-url origin https://github.com/Homebrew/brew.git

# 以下针对 mac OS 系统上的 Homebrew
git -C "$(brew --repo homebrew/core)" remote set-url origin https://github.com/Homebrew/homebrew-core.git
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://github.com/Homebrew/homebrew-cask.git
git -C "$(brew --repo homebrew/cask-fonts)" remote set-url origin https://github.com/Homebrew/homebrew-cask-fonts.git
git -C "$(brew --repo homebrew/cask-drivers)" remote set-url origin https://github.com/Homebrew/homebrew-cask-drivers.git

# 更换后测试工作是否正常
brew update

Homebrew Bottles 还原的话,只需删除 .bash_profile 或 .zshrc 中相应的那行就可以了。
# export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.cloud.tencent.com/homebrew-bottles

安装命令行工具一览

  • ag 文本搜索:brew install the_silver_searcher
  • rg 文本搜索:brew install ripgrep
  • fd 文件夹搜索:brew install fd
  • exa 替代ls:brew install exa
  • cloc 代码行数统计:brew install cloc
  • mongo shell(连接工具):先加叶子 brew tap mongodb/brew,后安装 brew install mongodb-community-shell
  • mongo tools(导入导出等): brew install mongodb-database-tools
  • svn (Xcode11.4之后不再包含): brew install svn
  • scrcpy (利用adb操作Android手机): brew install scrcpy
  • asciinema (终端操作录制分享): brew install asciinema

第四步:配置

chrome 同步

扩展

  • 1Password extension (desktop app required) 4.7.5.90
  • AdBlock 最佳广告拦截工具 4.27.0
  • Downie 1.2
  • Eagle 2.2.0
  • EditThisCookie 1.6.3
  • Evernote Web Clipper 7.13.8
  • Gitako - GitHub file tree 2.6.2
  • Holmes 3.3.1
  • Markdown New Tab 19.7.24
  • NoScript 11.2
  • Proxy SwitchyOmega 2.5.21 (备用)
  • Raindrop.io 5.1.64
  • RSS Feed Reader 7.7.5
  • Save to Rocket 3.1.3.0
  • Sourcegraph 20.11.17.1425
  • Vue.js devtools 5.3.4
  • セカイブラウザ Google Chrome拡張機能版 1.0.1
  • 彩云小译 - 网页翻译插件 1.2.7

开发语言

golangci

rust

https://www.rust-lang.org/zh-CN/learn/get-started

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# 输出
Rust is installed now. Great!

To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH
environment variable. Next time you log in this will be done
automatically.

To configure your current shell, run:
source $HOME/.cargo/env

换源加速 将下面的内容保存到 ~/.cargo/config 文件中,没有就创建一个

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"

# 替换成你偏好的镜像源
replace-with = 'sjtu'

# 清华大学
[source.tuna]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"

# 中国科学技术大学
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"

# 上海交通大学
[source.sjtu]
registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index"

# rustcc社区
[source.rustcc]
registry = "git://crates.rustcc.cn/crates.io-index"
Last updated on 2021-09-08
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy