From 793ca613543db12f407dbce613ace1b58ee2a027 Mon Sep 17 00:00:00 2001 From: andrejrabcenko Date: Tue, 19 Sep 2023 10:22:13 +0300 Subject: [PATCH] new file: projects/github.com/zsh-users/zsh-completions/README.md new file: projects/github.com/zsh-users/zsh-completions/package.yml --- .../zsh-users/zsh-completions/README.md | 21 +++++++++++++++++ .../zsh-users/zsh-completions/package.yml | 23 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 projects/github.com/zsh-users/zsh-completions/README.md create mode 100644 projects/github.com/zsh-users/zsh-completions/package.yml 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