From b03230f3a6269d1b284d1a3776891335c1dd98b5 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sun, 5 Nov 2023 03:37:06 +0000 Subject: [PATCH] =?UTF-8?q?blog:=202023=20=E5=B9=B4=EF=BC=8C=E6=88=91?= =?UTF-8?q?=E7=9A=84=20Mac=20OS=20=E7=8E=AF=E5=A2=83=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/devcontainer.json | 3 +- app/tag-data.json | 62 +++---- ...zation-of-my-macos-environment-in-2023.mdx | 166 ++++++++++++++++++ 3 files changed, 199 insertions(+), 32 deletions(-) create mode 100644 data/blog/initialization-of-my-macos-environment-in-2023.mdx diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index ab08f9d..6f177d2 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -37,7 +37,8 @@ "lihui.vs-color-picker", "bradlc.vscode-tailwindcss", "github.vscode-github-actions", - "GitHub.copilot" + "unifiedjs.vscode-mdx", + "Codeium.codeium" ] } }, diff --git a/app/tag-data.json b/app/tag-data.json index 929b041..9fd05a7 100644 --- a/app/tag-data.json +++ b/app/tag-data.json @@ -3,48 +3,48 @@ "主机": 1, "hackintosh": 1, "硬件": 1, - "arch-linux": 3, - "环境搭建": 3, - "vps": 3, - "linux": 1, - "pve": 2, - "xray": 2, - "acme": 1, - "acmesh": 1, - "docker": 3, - "docker-compose": 1, - "内网穿透": 1, + "threejs": 1, + "navigation-mesh": 1, + "3d": 1, + "game": 1, + "path-finding": 1, "github-actions": 1, "cicd": 1, - "de": 1, - "debian": 1, - "blog": 1, - "markdown": 1, - "nextjs": 1, - "tailwind-css": 1, - "verdaccio": 1, + "docker": 3, + "react": 1, + "baas": 1, "self-hosted": 3, - "caddy": 2, - "registry": 1, - "nodejs": 1, + "appwrite": 1, + "nhost": 1, + "supabase": 1, + "pve": 2, + "de": 1, + "环境搭建": 3, + "debian": 1, + "arch-linux": 3, + "vps": 3, "zerotier": 1, "tailscale": 1, "sd-wan": 1, "nat": 1, "frp": 1, - "react": 1, - "baas": 1, - "appwrite": 1, - "nhost": 1, - "supabase": 1, + "verdaccio": 1, + "caddy": 2, + "registry": 1, + "nodejs": 1, "sni": 1, "tls": 1, "reverse-proxy": 1, "反向代理": 1, + "xray": 2, "vless": 1, - "threejs": 1, - "navigation-mesh": 1, - "3d": 1, - "game": 1, - "path-finding": 1 + "blog": 1, + "markdown": 1, + "nextjs": 1, + "tailwind-css": 1, + "acme": 1, + "acmesh": 1, + "docker-compose": 1, + "内网穿透": 1, + "linux": 1 } diff --git a/data/blog/initialization-of-my-macos-environment-in-2023.mdx b/data/blog/initialization-of-my-macos-environment-in-2023.mdx new file mode 100644 index 0000000..7592545 --- /dev/null +++ b/data/blog/initialization-of-my-macos-environment-in-2023.mdx @@ -0,0 +1,166 @@ +--- +title: 2023 年,我的 Mac OS 环境初始化 +date: '2023-04-13' +tags: ['Mac OS', '主机', 'Hackintosh', '硬件'] +draft: false +summary: 记录和分享我的 Mac OS 必备的基本软件。 +--- + +## 初步环境 + +跑完系统的向导,正式进入系统后,先装 brew + +```bash +/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" +``` + +参考:[macOS(或 Linux)缺失的软件包的管理器 — Homebrew](https://brew.sh/index_zh-cn) + +### 安装第一批软件 + +我需要立即能够使用: + +- Warp +- Chrome +- Syncthing +- Logseq(现在我抛弃它了,只用来在本地查阅以前记录的内容) + +所以: + +```bash +brew install --casks warp google-chrome syncthing logseq +``` + +恢复输入法——小鹤音型 +因为使用 Rime 实现的,所以先安装 Squirrel + +```bash +brew install --cask squirrel +``` + +安装完毕后,到系统设置里选择启用鼠须管。 + +## 开发环境 + +```bash +brew install --cask visual-studio-code +brew install cmake git-lfs +``` + +### Node JS 环境 + +```bash +brew install nvm + +cat >> ~/.zshrc<> ~/.zshrc +``` + +#### ZSH-Z 配置 + +避免优先匹配到子目录,在 `.zshrc` 中添加如下行: + +```bash +cat >> ~/.zshrc <> ~/.zshrc <