Giter Club home page Giter Club logo

gentoo-zsh-completions's Introduction

gentoo-zsh-completions

This project focuses on providing Zsh completion support to various Gentoo tools that lack completion scripts upstream.

gentoo-zsh-completions's People

Contributors

codeswhite avatar compnerd avatar gbrlsnchs avatar khuei avatar mackal avatar msva avatar ncaq avatar otakuto avatar radhermit avatar vikraman avatar williamh avatar xdch47 avatar

Stargazers

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

Watchers

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

gentoo-zsh-completions's Issues

Completion does not work with eselect-repository

Relaying projg2/eselect-repository#2 since I don't use zsh. Please let me know if that's a problem you're going to fix within this package, or if I need to do anything to help.

Quoting the bug by @q3cpma:

first, thanks a lot for this simple and lightweight layman replacement (especially when seeing all the stuff that layman pulls). When trying to complete eselect repository under zsh, I get
_values:compvalues:10: invalid value definition: disable [-f] (<name>|<index>)... Disable specified repositories without removing their contents.
I don't know if I should take it to https://github.com/gentoo/gentoo-zsh-completions, but since it's the only eselect module failing, I'll try here first.

Using eselect-repository-2 and app-shells/gentoo-zsh-completions-20150103

equery files --filter=<TAB> results in (eval):1: unmatched '

There are single quotes inside single quotes at line 131 in _gentoolkit. I suggest replacing them with double ones:

--- _gentoolkit 2015-04-28 20:42:29.000000000 +1000
+++ _gentoolkit.new 2015-04-28 20:43:00.589279814 +1000
@@ -128,7 +128,7 @@
'(-s --timestamp)'{-s,--timestamp}'[include timestamp in output]'
'(-t --type)'{-t,--type}'[include file type in output]'
'--tree[display results in a tree (turns off other options)]' \

  •            '--filter=[filter output]:filter(s):_values -s , '' dir obj sym dev fifo path conf cmd doc man info' \
    
  •            '--filter=[filter output]:filter(s):_values -s , "" dir obj sym dev fifo path conf cmd doc man info' \
             ':installed pkgname:_packages installed' && ret=0
           ;;
         has|a)
    

_arguments:comparguments:312: invalid argument: (--jobs).[Number of packages to build simultaneously]:jobs:({1..2})

In file _portage, on line 95, --jobs is missing the short option -j and is causing an error (because a single option is wrapped in {} for brace expansion

--- _portage 2014-11-24 11:02:22.227073039 +0200
+++ /usr/share/zsh/site-functions/_portage 2014-11-24 11:01:04.139638074 +0200
@@ -92,7 +92,7 @@
"($noask_opts)"{-A,--alert}"[Add a terminal bell to all interactive prompts]"
"--ignore-default-opts[Ignore EMERGE_DEFAULT_OPTS]"
"--moo[Have you mooed today?]"

  • "(--jobs)"{--jobs=}"[Number of packages to build simultaneously]:jobs:({1.."${#${$(</proc/cpuinfo)/^processor}}"})"
  • "(--jobs)"{-j,--jobs=}"[Number of packages to build simultaneously]:jobs:({1.."${#${$(</proc/cpuinfo)/^processor}}"})"
    )
    install_args=(
    "--deselect[Remove atom from world file]"

improve performance when completing sets

I think it is safe to assume that when I types "@" I want to complete sets. I don't know of any other completion that could start with "@".
Currently it takes quite a lot of disk/cpu time when completing after an "@". I mostly need it for "@preserved-rebuild" which I like to type wrong. For the moment I use an alias to workaround preformance issues when completing sets.

Release request

Hi,
/usr/share/zsh/site-functions/_openrc is now (i.e. since last december) in openrc itself. As openrc-0.35 got released, gentoo-zsh-completions obviosly cause a file collision:

 * Removing /usr/share/doc
 * checking 292 files for package collisions
 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at https://bugs.gentoo.org/ unless you report exactly
 * which two packages install the same file(s). See
 * https://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how
 * to solve the problem. And once again, please do NOT file a bug report
 * unless you have completely understood the above message.
 * 
 * Detected file collision(s):
 * 
 *      /usr/share/zsh/site-functions/_openrc
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * app-shells/gentoo-zsh-completions-20150103:0::gentoo
 *      /usr/share/zsh/site-functions/_openrc
 * 
 * Package 'sys-apps/openrc-0.35' NOT merged due to file collisions. If
 * necessary, refer to your elog messages for the whole content of the
 * above message.

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.