Skip to content

Instantly share code, notes, and snippets.

@LuizCampedelli
Last active November 18, 2025 19:26
Show Gist options
  • Select an option

  • Save LuizCampedelli/c14ac21fb07b25bfbe96702f86f3fa53 to your computer and use it in GitHub Desktop.

Select an option

Save LuizCampedelli/c14ac21fb07b25bfbe96702f86f3fa53 to your computer and use it in GitHub Desktop.
Oh my zsh and its plugins
# Oh my zsh.
## Install ZSH.
```
sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
```
## Install Oh my ZSH.
```
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
```
## Install plugins.
- autosuggesions plugin
`git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions`
- zsh-syntax-highlighting plugin
`git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting`
- zsh-fast-syntax-highlighting plugin
`git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting`
- zsh-autocomplete plugin
`git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git $ZSH_CUSTOM/plugins/zsh-autocomplete`
## Enable plugins by adding them to .zshrc.
- Open .zshrc
`code ~/.zshrc` or `nvim ~/.zshrc` or `nano ~/.zshrc`
- Find the line which says `plugins=(git)`.
- Replace that line with
`plugins=(git zsh-autosuggestions zsh-syntax-highlighting fast-syntax-highlighting zsh-autocomplete)`
- Add that line with
`in: plugins=(other setups....add ->: zsh-autosuggestions zsh-syntax-highlighting fast-syntax-highlighting zsh-autocomplete)`
## References
- [Oh my ZSH](https://github.com/ohmyzsh/ohmyzsh)
- [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions)
- [zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting)
- [zsh-fast-syntax-highlighting](https://github.com/zdharma/fast-syntax-highlighting)
- [zsh-autocomplete](https://github.com/marlonrichert/zsh-autocomplete)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment