Skip to content

Loading Zsh Completions

twe4ked edited this page Mar 2, 2013 · 1 revision

Zsh completions require completion files to be stored in a directory that is listed in the $fpath variable.

The suggested way to load completions using fresh is to add the following to your .zshrc:

# .zshrc
fpath=(~/.fresh/build/completion $fpath)
autoload -U compinit; compinit

Then direct completion files to ~/.fresh/build/completion:

# .freshrc
fresh zsh-users/zsh-completions src --file=completion/
fresh freshshell/fresh contrib/completion/fresh-completion.zsh --file=completion/_fresh
Clone this wiki locally