Skip to content

Commit 169d83d

Browse files
author
gaohongxiang
committed
feat: 配置
1 parent df3ac8e commit 169d83d

File tree

3 files changed

+2065
-5
lines changed

3 files changed

+2065
-5
lines changed

source/_posts/2025-07-23-mac配置.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,30 @@ brew install --cask iterm2
8080

8181
- 使用 Starship 美化终端提示符(`.zshrc` 添加)
8282

83-
```
84-
bash
83+
主题使用
84+
https://juejin.cn/post/7293342627814244367?searchId=20250818202221EB3DC46982643A3386E9
85+
https://juejin.cn/post/7293342627814244367?searchId=20250826140803C7B559BEC4FC8596A209
8586

87+
```
88+
bash
8689
87-
复制编辑
88-
eval "$(starship init zsh)"
89-
```
90+
91+
复制编辑
92+
eval "$(starship init zsh)"
93+
```
94+
95+
```bash
96+
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
97+
98+
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
99+
100+
nano ~/.zshrc
101+
102+
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
103+
104+
source ~/.zshrc
105+
106+
```
90107

91108
---
92109

@@ -132,6 +149,8 @@ bash
132149
133150
复制编辑
134151
brew install nvm
152+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
153+
source ~/.zshrc # 或 ~/.bash_profile,取决于你用的 shell
135154
mkdir ~/.nvm
136155
```
137156

0 commit comments

Comments
 (0)