From 87f303fccfc1175f977c5d5774c89ad912511646 Mon Sep 17 00:00:00 2001 From: Joe Block Date: Tue, 26 Aug 2014 12:15:16 -0700 Subject: [PATCH 1/3] Make it easier to use zsh-users/zsh-completions repo with antigen --- load-zsh-completions.plugin.zsh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 load-zsh-completions.plugin.zsh diff --git a/load-zsh-completions.plugin.zsh b/load-zsh-completions.plugin.zsh new file mode 100644 index 0000000..f5433ca --- /dev/null +++ b/load-zsh-completions.plugin.zsh @@ -0,0 +1,4 @@ +# Simple plugin script to make loading the zsh-completions repo into $fpath + +COMPLETIONS_D="$(dirname $0)/src" +fpath=(${COMPLETIONS_D} $fpath) From f836341954db7e4e5e907d0f4f49c7f071e94b51 Mon Sep 17 00:00:00 2001 From: Joe Block Date: Tue, 26 Aug 2014 12:26:32 -0700 Subject: [PATCH 2/3] Add instructions for using the repo as an antigen plugin This should also work with Prezto, but I've only tested with antigen since that's what I use. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 6a1ad8e..1418526 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,16 @@ Usage rm -f ~/.zcompdump; compinit + +#### Using antigen +Add +```bash +antigen bundle zsh-lovers/zsh-completions +``` + +to your `.zshrc`. This will automatically clone the repository and add zsh-completions/src to your `$fpath`. You may have to rebuild zcompdump as listed above under Manual Installation. + + Contributing ------------ From 58fa86e56742dcdcb782d0c11217221fc54fb1b6 Mon Sep 17 00:00:00 2001 From: Joe Block Date: Wed, 3 Sep 2014 19:52:07 -0700 Subject: [PATCH 3/3] Clarify description --- load-zsh-completions.plugin.zsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/load-zsh-completions.plugin.zsh b/load-zsh-completions.plugin.zsh index f5433ca..879f5c5 100644 --- a/load-zsh-completions.plugin.zsh +++ b/load-zsh-completions.plugin.zsh @@ -1,4 +1,5 @@ -# Simple plugin script to make loading the zsh-completions repo into $fpath +# Simple plugin script to automate loading the zsh-completions repo into +# $fpath for antigen users COMPLETIONS_D="$(dirname $0)/src" -fpath=(${COMPLETIONS_D} $fpath) +fpath=("${COMPLETIONS_D}" $fpath)