Siga os passos aqui para obter outros recursos também: link
- Instale oh-my-zsh
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
- Clone os plug-ins necessários.
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- Adicionar plug-ins a
~/.zshrc
as
plugins = ( [plugins...] zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting)
Nota: certifique-se de que o destaque de sintaxe zsh seja o último da lista acima.
- Corrigir problemas de tema de plano de fundo (não é necessário depende do seu tema).
Adicione a seguinte linha ao seu
~/.zshrc
.
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=white'
- Reinicie o zsh
source ~/.zshrc
Se você gostou da resposta, considere estrelar o repositório do github.