Skip to content

Commit

Permalink
📖 更新文章
Browse files Browse the repository at this point in the history
  • Loading branch information
fxzer committed Jun 7, 2024
1 parent 9dc95ba commit 205b74f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 36 deletions.
46 changes: 25 additions & 21 deletions docs/FrontEnd/Other/Mac系统环境快速搭建.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

```zsh
# 从国内源安装 Homebrew

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
```

Expand All @@ -28,41 +28,47 @@ cd ~ && mkdir -p c d n w m/Admin m/UI m/Vue3 m/ToolKits m/Nuxt m/Vitest
```zsh
brew install --cask arc google-chrome microsoft-edge orbstack figma # 安装较慢
brew install --cask apifox dingtalk wechat qq qqmusic wpsoffice adrive baidunetdisk neteasemusic obsidian
visual-studio-code raycast warp alt-tab termius bob rectangle snipaste manico
visual-studio-code raycast warp alt-tab termius bob rectangle snipaste manico
```

```zsh
# 选装
stats bartender keycastr docker input-source-pro videofusion
```


```zsh
brew install lsd fastfetch

```

`fnm``nvm`


```zsh
# brew install nvm
# brew install nvm
brew install fnm
fnm install 20

# 设置镜像
npm config set registry https://registry.npmmirror.com

# nvm install 20.0.0

npm i -g pnpm
# 安装全局 npm 包
pnpm i -g @antfu/ni yarn taze rimraf cz-git czg commitizen vitest rollup tsup esno
pnpm i -g @antfu/ni yarn taze rimraf cz-git czg commitizen vitest rollup tsup esno
```

### 手动安装

> clashx 、 iRightMenu、mos 、微信输入法 、腾讯柠檬 、typora
> Myzip 、、figplayer 、pixelmator 、 alivepro 、Omi录屏专家 、Giphy Capture 、permute3
> Myzip 、、figplayer 、pixelmator 、 alivepro 、Omi录屏专家 、Giphy Capture 、permute3
## 三、配置软件

### 云盘导入 RayCast 配置,同步浏览器/VSCode配置...

### Git配置

```zsh
# ~/.gitconfig
[safe]
Expand All @@ -75,7 +81,7 @@ pnpm i -g @antfu/ni yarn taze rimraf cz-git czg commitizen vitest rollup tsup es
[user]
name = xxx
email = [email protected]
[core]
[core]
excludesfile = ~/.gitignore
ignorecase = false # 区分大小写
[filter "lfs"]
Expand All @@ -99,23 +105,25 @@ pnpm i -g @antfu/ni yarn taze rimraf cz-git czg commitizen vitest rollup tsup es
*/.DS_Store
```

### 增强 ZSH 功能: 安装 [ZIMFW](https://github.com/zimfw/zimfw)[OhMyZsh](https://ohmyz.sh/)
### 增强 ZSH 功能: 安装 [ZIMFW](https://github.com/zimfw/zimfw)[OhMyZsh](https://ohmyz.sh/)

#### zimfw

```zsh
curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh
```
curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh
```

#### omz
#### omz

```zsh
```zsh
#安装OMZ插件
cd ~/.oh-my-zsh/plugins
git clone https://github.com/zsh-users/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-completions
git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git
git clone https://github.com/zsh-users/zsh-completions
git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git
```

### 配置 ZSH 主题: 安装[P10K](https://github.com/romkatv/powerlevel10k),或 [starship](https://starship.rs/)
### 配置 ZSH 主题: 安装[P10K](https://github.com/romkatv/powerlevel10k),或 [starship](https://starship.rs/)

```zsh
# ~/.zshrc
Expand Down Expand Up @@ -226,7 +234,6 @@ DISABLE_MAGIC_FUNCTIONS="true"
# 关闭 Zsh 的自动更新
DISABLE_AUTO_UPDATE="true"

# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
Expand All @@ -240,22 +247,19 @@ case ":$PATH:" in
esac
# pnpm end

#fnm
#fnm
eval "$(fnm env --use-on-cd)"

# ====== P10K ======
source ~/c/powerlevel10k/powerlevel10k.zsh-theme
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

# ======= starship =======
# 判断如果是自带的terminal则不应用 starship 主题
if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then
eval "$(starship init zsh)"
fi

```

```zsh
Expand Down
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@
},
"dependencies": {
"@documate/vue": "^0.3.1",
"sass": "^1.69.5",
"vite-plugin-pwa": "^0.16.7"
"sass": "^1.77.4",
"vite-plugin-pwa": "^0.20.0"
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.1",
"@antfu/eslint-config": "^2.20.0",
"@documate/documate": "^0.2.1",
"@vite-pwa/vitepress": "^0.2.3",
"eslint": "^8.56.0",
"eslint-plugin-format": "^0.1.0",
"flexsearch": "^0.7.31",
"markdown-it": "^13.0.2",
"puppeteer": "^21.5.2",
"unplugin-auto-import": "^0.14.4",
"unplugin-icons": "^0.15.3",
"unplugin-vue-components": "^0.23.0",
"vite": "^4.5.0",
"@vite-pwa/vitepress": "^0.5.0",
"eslint": "^9.4.0",
"eslint-plugin-format": "^0.1.1",
"flexsearch": "^0.7.43",
"markdown-it": "^14.1.0",
"puppeteer": "^22.10.0",
"unplugin-auto-import": "^0.17.6",
"unplugin-icons": "^0.19.0",
"unplugin-vue-components": "^0.27.0",
"vite": "^5.2.12",
"vitepress": "1.0.0-rc.24",
"vitepress-plugin-search": "1.0.4-alpha.20",
"vue": "^3.3.8"
"vue": "^3.4.27"
},
"packageManager": "pnpm@8.15.6+sha1.8105075ad0aa306138be128c017e9c41e28ecffa"
"packageManager": "pnpm@9.2.0"
}

0 comments on commit 205b74f

Please sign in to comment.