Coder Social home page Coder Social logo

z-shell / z-a-meta-plugins Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 8.0 413 KB

๐ŸŒ€ An annex delivers the capability to install a group of plugins via a single, friendly label

Home Page: https://wiki.zshell.dev/ecosystem/annexes/meta-plugins

License: GNU General Public License v3.0

Shell 100.00%
zshrc zannex multi-installer zsh zshell

z-a-meta-plugins's Introduction

Logo โฎ Zi โฏ Annex - meta-plugins

An annex delivers the capability to install a group of plugins via a single, friendly label

zi annex meta-plugins


๐Ÿ’ก Wiki: meta-plugins - annexes

Install

Simply load like a regular plugin, i.e.:

zi light z-shell/z-a-meta-plugins

After executing this command you can then install meta plugins provided by the annex.


Note

  • This repository compatible with Zi

z-a-meta-plugins's People

Contributors

deepsourcebot avatar dependabot[bot] avatar digital-teams avatar lunarequest avatar luong-komorebi avatar mrreasonable avatar psprint avatar ss-o avatar vtta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

z-a-meta-plugins's Issues

[bug]: atpull'zi creinstall -q .' in zsh-users/zsh-completions break symlink

Environment

OSTYPE=linux-gnu CPUTYPE=x86_64 / MACHINE_TYPE=x86_64 ZSH_VERSION=5.9

Expected behavior

When install the first time, completions file will be installed like this:

$ ls ~/.local/zi/completions

_afew -> ~/.local/zi/plugins/zsh-users---zsh-completions/src/_afew
_android -> ~/.local/zi/plugins/zsh-users---zsh-completions/src/_android
_archlinux-java -> ~.local/zi/plugins/zsh-users---zsh-completions/src/_archlinux-java
...

And I expect this still remain after zi update --all

Current behavior

For comparison:

  • Normal [1]
$ ls ~/.local/zi/completions

_afew -> ~/.local/zi/plugins/zsh-users---zsh-completions/src/_afew
_android -> ~/.local/zi/plugins/zsh-users---zsh-completions/src/_android
_archlinux-java -> ~/.local/zi/plugins/zsh-users---zsh-completions/src/_archlinux-java
  • Broken [2]
$ ls ~/.local/zi/completions

_afew -> ./src/_afew
_android -> ./src/_android
_archlinux-java -> ./src/_archlinux-java

Zsh will complain about those broken symlink after next reload

Steps to reproduce

  • Step 1: Install with
zi wait lucid light-mode for blockf atpull'zi creinstall -q .' zsh-users/zsh-completions
  • Step 2: Update with
zi update --all

or

zi update zsh-users/zsh-completions
  • Step 3: Broken symlink [2]

Code snippet

I just pust above install command to .zshrc

Aditional information

None

Self-service

  • I'd be willing to address this documentation request myself.

Have you read the Contributing Guidelines?

Are you familiar with Contributor Covenant Code of Conduct?

Contact Details

No response

[bug]: Incorrectly linked files for zsh-users/completions

Environment

OSTYPE=linux-gnu CPUTYPE=x86_64 / MACHINE_TYPE=x86_64 ZSH_VERSION=5.8.1

Expected behavior

Completions to be correctly installed, the files found and no error messages.

Current behavior

Upon starting zsh, sometimes but not always, a whole lot of these show up:

compinit:503: no such file or directory: /home/.../.config/zi/completions/_afew
compinit:503: no such file or directory: /home/.../.config/zi/completions/_android
compinit:shift:505: shift count must be <= $#
compinit:503: no such file or directory: /home/.../.config/zi/completions/_archlinux-java
compinit:shift:505: shift count must be <= $#
compinit:503: no such file or directory: /home/.../.config/zi/completions/_artisan
compinit:shift:505: shift count must be <= $#
...

Running zi clist also shows errors like:

afew, android, archlinux-java           [unknown] [unknown file, clean with cclear]

And running zi cclear will delete all the offending links:

Removing completion: afew [unknown] [unknown file]

Steps to reproduce

I haven't been able to figure out why it doesn't happen all the time, but the links are always broken.

Code snippet

zi load @zsh-users+fast

Aditional information

It seems that the issue is caused by line 122 of the file z-a-meta-plugins.plugin.zsh

zsh-users/zsh-completions           "$_std atpull'zi creinstall -q .' pick'/dev/null'"

In particular, the -q . parameters cause the completions to be linked as ./src/XXXX instead of the full path to the files in the src directory of the plugin.
Simply removing it creates functional symlinks and zi clist does not complain any more.

Self-service

  • I'd be willing to address this documentation request myself.

Have you read the Contributing Guidelines?

Are you familiar with Contributor Covenant Code of Conduct?

Contact Details

No response

bad url for diff so fancy

issue appears to be https://github.com/z-shell/z-a-meta-plugins/blob/main/z-a-meta-plugins.plugin.zsh#L115

Cloning into '/home/xeno/.zi/plugins/sbinbin---git-dsf;bin---diff-so-fancy'...
remote: Not Found
1. [meta-plugins annex] Loading meta-plugin: `z-shell' consisting of: 1) z-shellโˆ•F-Sy-H, 2) z-shellโˆ•H-S-MW, 3) z-shellโˆ•zsh-diff-so-fancy.

Downloading z-shell/F-Sy-Hโ€ฆ

Cloning into '/home/xeno/.zi/plugins/z-shell---F-Sy-H'...
โ– โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ OBJ: 100, PACK: 270/270, COMPR: 100%, REC: 100%, RES: 100%  
Note: Compiling: F-Sy-H.plugin.zshโ€ฆ OK.
Installed 1 completions. They are stored in $INSTALLED_COMPS array.

Downloading z-shell/H-S-MWโ€ฆ

Cloning into '/home/xeno/.zi/plugins/z-shell---H-S-MW'...
โ–นโ–ธโ–นโ–นโ–น โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ OBJ: 100, PACK: 42/42, COMPR: 100%, REC: 100%, RES: 100%  
Note: Compiling: H-S-MW.plugin.zshโ€ฆ OK.

Downloading sbinbin/git-dsf;bin/diff-so-fancyโ€ฆ

Cloning into '/home/xeno/.zi/plugins/sbinbin---git-dsf;bin---diff-so-fancy'...
remote: Not Found
fatal: repository 'https://github.com/sbinbin/git-dsf;bin/diff-so-fancy/' not found

Clone failed (code: 128).

Downloading z-shell/zsh-diff-so-fancyโ€ฆ

Cloning into '/home/xeno/.zi/plugins/z-shell---zsh-diff-so-fancy'...
โ–‰ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ OBJ: 100, PACK: 59/59, COMPR: 100%, REC: 100%, RES: 100%  
Cloning into '/home/xeno/.zi/plugins/z-shell---zsh-diff-so-fancy/diff-so-fancy'...
โ– โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ OBJ: 100, PACK: 2258/2258, COMPR: 100%, REC: 100%, RES: 100%  
Cloning into '/home/xeno/.zi/plugins/z-shell---zsh-diff-so-fancy/diff-so-fancy/test/bats'...
โ– โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ OBJ: 100, PACK: 5584/5584, COMPR: 100%, REC: 100%, RES: 100%   
Cloning into '/home/xeno/.zi/plugins/z-shell---zsh-diff-so-fancy/diff-so-fancy/test/test_helper/bats-assert'...
โ–Š โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ OBJ: 100, PACK: 466/466, COMPR: 100%, REC: 100%, RES: 100%    
Cloning into '/home/xeno/.zi/plugins/z-shell---zsh-diff-so-fancy/diff-so-fancy/test/test_helper/bats-support'...
โ–Š โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ OBJ: 105, PACK: 105/105, COMPR: 100%, RE
zi for \
  z-shell/z-a-meta-plugins \
  z-shell/z-a-default-ice \
  @z-shell \
  @z-shell2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.