If you havenβt already:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestionsgit clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlightinggit clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-completionsEdit this line in your .zshrc:
plugins=(git)Change it to:
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
zsh-completions
)~/.oh-my-zsh/custom/plugins.
At the end of your .zshrc, add these lines:
# Enable autosuggestions
source $ZSH_CUSTOM/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
# Enable syntax highlighting (must be last)
source $ZSH_CUSTOM/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zshπ§
zsh-syntax-highlightingmust always be sourced last, or it may break.
If you installed zsh-completions, you can add this too:
fpath+=$ZSH_CUSTOM/plugins/zsh-completions/src
autoload -Uz compinit && compinitsource ~/.zshrcOr close and reopen the terminal.
- Autosuggestions: Start typing a previously used command. If it appears in light grey, it's working.
- Syntax highlighting: Try mistyping a command (e.g.,
gtiinstead ofgit) β it should highlight errors in red. - Completions: Type a partial command or path and press
Tab.
Right now, your theme is blank:
ZSH_THEME=""You can try something simple like:
ZSH_THEME="agnoster"Or install a custom one like Powerlevel10k later.