My zsh config
- Clone this repo to
~/.config/zsh cdto~/.config/zshand runchmod +x ./setup.sh- Run
./setup.sh
IMPORTANT: setup.sh will overwrite the content of ~/.zshenv so create a backup if you want to keep it.
The setup script will set ZDOTDIR to ~/.config/zsh and setup antidote - a plugin manager for zsh.
If a program provides completion sources, you can add them as follows:
Example: Github CLI (gh) provides a commmand to install completions:
gh completion -s zshHence, you need to create a file src/completion/sources/gh.zsh and insert the command there.
The completions will be automatically setup when you source .zshrc.
If a directory contains a file .local.zsh, it will be automatically sourced.