From 205b74ff4b72a762e99a4f4df6a94ee19d21c59f Mon Sep 17 00:00:00 2001 From: fxzer Date: Fri, 7 Jun 2024 09:26:24 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=96=20=E6=9B=B4=E6=96=B0=E6=96=87?= =?UTF-8?q?=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...53\351\200\237\346\220\255\345\273\272.md" | 46 ++++++++++--------- package.json | 30 ++++++------ 2 files changed, 40 insertions(+), 36 deletions(-) diff --git "a/docs/FrontEnd/Other/Mac\347\263\273\347\273\237\347\216\257\345\242\203\345\277\253\351\200\237\346\220\255\345\273\272.md" "b/docs/FrontEnd/Other/Mac\347\263\273\347\273\237\347\216\257\345\242\203\345\277\253\351\200\237\346\220\255\345\273\272.md" index ac0e18a4..68b56991 100644 --- "a/docs/FrontEnd/Other/Mac\347\263\273\347\273\237\347\216\257\345\242\203\345\277\253\351\200\237\346\220\255\345\273\272.md" +++ "b/docs/FrontEnd/Other/Mac\347\263\273\347\273\237\347\216\257\345\242\203\345\277\253\351\200\237\346\220\255\345\273\272.md" @@ -6,7 +6,7 @@ ```zsh # 从国内源安装 Homebrew - + /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" ``` @@ -28,7 +28,7 @@ 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 @@ -36,7 +36,6 @@ visual-studio-code raycast warp alt-tab termius bob rectangle snipaste manico stats bartender keycastr docker input-source-pro videofusion ``` - ```zsh brew install lsd fastfetch @@ -44,25 +43,32 @@ 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] @@ -75,7 +81,7 @@ pnpm i -g @antfu/ni yarn taze rimraf cz-git czg commitizen vitest rollup tsup es [user] name = xxx email = xxx@163.com -[core] +[core] excludesfile = ~/.gitignore ignorecase = false # 区分大小写 [filter "lfs"] @@ -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 @@ -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 @@ -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 diff --git a/package.json b/package.json index b71273e3..69f10d94 100644 --- a/package.json +++ b/package.json @@ -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" }