mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
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:
parent
6212446db6
commit
793ca61354
21
projects/github.com/zsh-users/zsh-completions/README.md
Normal file
21
projects/github.com/zsh-users/zsh-completions/README.md
Normal 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"`
|
23
projects/github.com/zsh-users/zsh-completions/package.yml
Normal file
23
projects/github.com/zsh-users/zsh-completions/package.yml
Normal 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
|
Loading…
Reference in a new issue