new file: projects/github.com/zsh-users/zsh-completions/README.md

new file:   projects/github.com/zsh-users/zsh-completions/package.yml
This commit is contained in:
andrejrabcenko 2023-09-19 10:22:13 +03:00 committed by Jacob Heider
parent 6212446db6
commit 793ca61354
2 changed files with 44 additions and 0 deletions

View file

@ -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"`

View file

@ -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