Skip to content

Commit

Permalink
update zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
storyxc committed Dec 19, 2023
1 parent cf1e542 commit 410b1e1
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions docs/actions/tools/iterm2配合oh-my-zsh配置个性主题终端.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# iterm2配合oh-my-zsh配置个性主题终端



## 安装iterm2

官网下载:https://iterm2.com/
Expand Down Expand Up @@ -32,26 +30,31 @@

### clone代码到本地

`git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.zsh/zsh-syntax-highlighting`

### 修改.zshrc配置

添加配置:`source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh`

### 效果

![image-20211119151720033](https://storyxc.com/images/blog//image-20211119151720033.png)
`git clone https://github.com/zsh-users/zsh-syntax-highlighting $ZSH_CUSTOM/plugins/zsh-syntax-highlighting`

## 安装历史指令提示插件

### clone代码到本地
`git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions`

`git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions`

## 修改.zshrc配置

- ~~`source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh`~~
- ~~`source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh`~~

### 修改.zshrc配置
`source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh`
```shell
# ~/.zshrc
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)
```

### 效果

![image-20211119151720033](https://storyxc.com/images/blog//image-20211119151720033.png)

## powerlevel10k主题

Expand Down

0 comments on commit 410b1e1

Please sign in to comment.