aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorFelipe Santos <felipecassiors@gmail.com>2022-02-12 14:37:11 -0300
committerGitHub <noreply@github.com>2022-02-12 14:37:11 -0300
commit81cd07bb9e0c76cdf716e6c1c9989fe29f090ce0 (patch)
tree1630c6f19c34a1d7ce1cf53d163b5fa4a01df4c7 /README.md
parentMerge pull request #842 from dark-panda/add-pg-completions (diff)
downloadzsh-completions-81cd07bb9e0c76cdf716e6c1c9989fe29f090ce0.tar
zsh-completions-81cd07bb9e0c76cdf716e6c1c9989fe29f090ce0.tar.gz
zsh-completions-81cd07bb9e0c76cdf716e6c1c9989fe29f090ce0.tar.bz2
zsh-completions-81cd07bb9e0c76cdf716e6c1c9989fe29f090ce0.tar.lz
zsh-completions-81cd07bb9e0c76cdf716e6c1c9989fe29f090ce0.tar.xz
zsh-completions-81cd07bb9e0c76cdf716e6c1c9989fe29f090ce0.tar.zst
zsh-completions-81cd07bb9e0c76cdf716e6c1c9989fe29f090ce0.zip
Improve OMZ installation instructions
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/README.md b/README.md
index aab6a30..b7a6e06 100644
--- a/README.md
+++ b/README.md
@@ -35,12 +35,13 @@ Add `antigen bundle zsh-users/zsh-completions` to your `~/.zshrc`.
* Clone the repository inside your oh-my-zsh repo:
- git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
+ git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions
-* Enable it in your `.zshrc` by adding it to your plugin list and reloading the completion:
+* Add it to `FPATH` in your `.zshrc` by adding the following line before `source "$ZSH/oh-my-zsh.sh"`:
- plugins=(… zsh-completions)
- autoload -U compinit && compinit
+ fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src
+
+Note: adding it as a regular Oh My ZSH! plugin will not work properly (see [#603](https://github.com/zsh-users/zsh-completions/issues/603)).
### Manual installation