diff --git a/projects/github.com/zsh-users/zsh-completions/README.md b/projects/github.com/zsh-users/zsh-completions/README.md new file mode 100644 index 00000000..eaae92a5 --- /dev/null +++ b/projects/github.com/zsh-users/zsh-completions/README.md @@ -0,0 +1,21 @@ +To activate these completions, add the following to your .zshrc: + +``` +if type tea &>/dev/null; then + FPATH=$ZSH_COMPLETIONS_ROOT/share/zsh-completions:$FPATH + + autoload -Uz compinit + compinit +fi +``` + +You may also need to force rebuild `zcompdump`: + +``` +rm -f ~/.zcompdump; compinit +``` + +Additionally, if you receive "zsh compinit: insecure directories" warnings when attempting to load these completions, you may need to run these commands: + +`chmod go-w "$ZSH_COMPLETIONS_ROOT/share"` +`chmod -R go-w "$ZSH_COMPLETIONS_ROOT/share/zsh"` \ No newline at end of file diff --git a/projects/github.com/zsh-users/zsh-completions/package.yml b/projects/github.com/zsh-users/zsh-completions/package.yml new file mode 100644 index 00000000..fe77a902 --- /dev/null +++ b/projects/github.com/zsh-users/zsh-completions/package.yml @@ -0,0 +1,23 @@ +distributable: + url: https://github.com/zsh-users/zsh-completions/archive/{{version}}.tar.gz + strip-components: 1 +versions: + github: zsh-users/zsh-completions +runtime: + env: + ZSH_COMPLETIONS_ROOT: "{{prefix}}" +dependencies: + zsh.sourceforge.io: '*' +build: + script: + - mkdir -p {{prefix}}/share + - cp -r src/_* {{prefix}}/share/ +test: + script: + - run: | + cat << EOF > test.zsh + fpath=($ZSH_COMPLETIONS_ROOT/share $fpath) + autoload _ack + which _ack + EOF + - zsh test.zsh | grep _ack