My zsh config
- Clone this repo to
~/.config/zsh
cd
to~/.config/zsh
and 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 zsh
Hence, 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.