From dd57c74a08af0210e01973ea5f71da9c72a4a5af Mon Sep 17 00:00:00 2001 From: DefectingCat Date: Thu, 11 Aug 2022 01:30:56 +0000 Subject: [PATCH] Update post --- pages/p/my-develop-environmental.mdx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pages/p/my-develop-environmental.mdx b/pages/p/my-develop-environmental.mdx index 321d430..4812851 100644 --- a/pages/p/my-develop-environmental.mdx +++ b/pages/p/my-develop-environmental.mdx @@ -88,14 +88,20 @@ chsh -s $(which zsh) ### Plugins -我比较常用的是 zsh-autosuggestions 与 zsh-syntax-highlighting,比较可惜的是这俩 Gitee mirror 上都还没有。所以我用的是 fastgit。 +我比较常用的是 zsh-autosuggestions 与 zsh-syntax-highlighting,比较可惜的是这俩 Gitee mirror 上都还没有。 ```bash -git clone https://hub.fastgit.org/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions -git clone https://hub.fastgit.org/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting +git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions # Add to .zshrc -plugins=(git zsh-autosuggestions zsh-syntax-highlighting) +plugins=(git zsh-autosuggestions) +``` + +```bash +git clone https://github.com/zsh-users/zsh-syntax-highlighting.git +echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc + +source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ``` ### Theme