summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* add completion for quickpkgHEADgentoo-bashcomp-20240625masterArthur Zamarin2024-06-251-0/+39
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* add completion for binutils-configArthur Zamarin2024-06-071-0/+45
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* gcc-config: fix invalid suggestions & add missing flagsArthur Zamarin2024-06-071-22/+26
| | | | | | | It was using the colored output and the "*" as completion options, which was causing weird suggestions. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* add completion for perl-cleaner from app-admin/perl-cleanerArthur Zamarin2024-05-271-0/+41
| | | | | | | Based on code from Michal Privoznik <michal.privoznik@gmail.com> Closes: https://github.com/gentoo-perl/perl-cleaner/pull/10 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* Makefile: remove legacy dist rulesgentoo-bashcomp-20240525Arthur Zamarin2024-05-251-13/+0
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* ebuild: fix, refactor and update completionArthur Zamarin2024-05-221-17/+18
| | | | | Closes: https://bugs.gentoo.org/403123 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* glsa-check: add missing argsArthur Zamarin2024-05-221-10/+9
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* add completion for eshowkw from app-portage/gentoolkitArthur Zamarin2024-05-211-0/+45
| | | | | Closes: https://bugs.gentoo.org/426570 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* layman: optimize speedArthur Zamarin2024-05-211-12/+14
| | | | | Closes: https://bugs.gentoo.org/526614 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* emerge: use array for opts & format the codeArthur Zamarin2024-05-211-71/+73
| | | | | Closes: https://bugs.gentoo.org/924830 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* update completion of emergeArthur Zamarin2024-05-211-14/+19
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* add completion for emaint from sys-apps/portageArthur Zamarin2024-05-151-0/+77
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* add completion for qkeyword from app-portage/portage-utilsArthur Zamarin2024-05-151-0/+37
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* add completion for qsearch from app-portage/portage-utilsArthur Zamarin2024-05-151-0/+36
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* add completion for qwhich from app-portage/portage-utilsArthur Zamarin2024-05-151-0/+49
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* add completion for qsize from app-portage/portage-utilsArthur Zamarin2024-05-151-0/+41
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* add completion for qdepends from app-portage/portage-utilsArthur Zamarin2024-05-151-0/+49
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* add completion for qfile from app-portage/portage-utilsArthur Zamarin2024-05-151-0/+45
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* add completion for qlist from app-portage/portage-utilsArthur Zamarin2024-05-151-0/+42
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* add completion for q from app-portage/portage-utilsArthur Zamarin2024-05-151-0/+52
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* fix copyright holder to Gentoo AuthorsArthur Zamarin2024-05-1221-21/+21
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* Makefile: bzip2 -> xzgentoo-bashcomp-20240511Sam James2024-05-111-3/+3
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* portageq envvar: fix variables selected for completionLucio Sauer2024-05-111-1/+1
| | | | | | | | | | | | | | | With lines like VAR="foo" BAZ="1 2 3", \(.*\)=".*$ not only matches VAR, but also VAR="foo" BAZ. This applies at line ^USE=.*, where the regular USE flags are followed by a list of all present USE_EXPAND variables together with their respective values. The current sed invocation also ignores environment variables that start with a lowercase letter, such as gl_cv_compiler_check_decl_option. Closes: https://bugs.gentoo.org/931671 Signed-off-by: Lucio Sauer <watermanpaint@posteo.net> Signed-off-by: Sam James <sam@gentoo.org>
* portageq envvar: preserve PATH to avoid command validation warningsLucio Sauer2024-05-111-1/+1
| | | | | | | | | | | | | | | Some of Portage's environment variables undergo command validation. When one is set to a relative value, Portage relies on PATH to find the binary. We need to preserve it after purging the environment (`env -i`) if we want to avoid "<key> is invalid: <value>" warnings. For Portage 3.0.63, this affects PORTAGE_{B{,UN}ZIP2_COMMAND,LOG_FILTER_FILE_CMD}. Bug: https://bugs.gentoo.org/588642 Signed-off-by: Lucio Sauer <watermanpaint@posteo.net> Signed-off-by: Sam James <sam@gentoo.org>
* completions/emerge: fix indentationSam James2024-02-251-9/+9
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* completions/emerge: add various further optionsSam James2024-02-211-1/+14
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* completions/emerge: add --changed-* optionsSam James2024-02-211-0/+1
| | | | | | | | | * --changed-deps * --changed-deps-report * --changed-slot * --changed-use Signed-off-by: Sam James <sam@gentoo.org>
* helpers/gentoo-common.sh: fix whitespaceSam James2024-02-211-5/+5
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* completions/emerge: add --with-test-depsSam James2024-02-211-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* completions/emerge: add --verbose-conflictsSam James2024-02-211-1/+1
| | | | | Bug: https://bugs.gentoo.org/924830 Signed-off-by: Sam James <sam@gentoo.org>
* completions/emerge: add additional optionsSam James2023-03-131-3/+3
| | | | | | | | | | | Adds the following: - --autounmask-keep-keywords - --autounmask-continue - --onlydeps-with-ideps - --onlydeps-with-rdeps - --update-if-installed Signed-off-by: Sam James <sam@gentoo.org>
* Ignore backup prefixed or suffixed files in repos.conf subdirectory.gentoo-bashcomp-20230313Jernej Jakob2023-01-141-1/+1
| | | | | | | | | | Portage ignores any files starting with '.' or ending with '~' in the repos.conf directory. See 'portage.util' function '_recursive_basename_filter'. Closes: https://bugs.gentoo.org/730624 Signed-off-by: Sam James <sam@gentoo.org>
* Revert "ignore non conf files in /etc/portage/repos.conf."Jernej Jakob2023-01-141-2/+2
| | | | | | | | | | This reverts commit f3f401b1166bb3d7f79b9f3cb8ebfc3527cd4394. The commit introduced behavior that was not consistent with portage, which parses all files in the repos.conf directory not starting with '.' or ending with '~', regardless if they end with '.conf' or not. Signed-off-by: Sam James <sam@gentoo.org>
* emerge: add support for --deselectLouis Sautier2023-01-141-2/+2
| | | | | | Signed-off-by: Louis Sautier <sautier.louis@gmail.com> Closes: https://github.com/gentoo/gentoo-bashcomp/pull/6 Signed-off-by: Sam James <sam@gentoo.org>
* ignore non conf files in /etc/portage/repos.conf.redneb2021-11-161-2/+2
| | | | | | | | | | | | | | portage ignores any file in /etc/portage/repos.conf/ (when that is in fact a directory) that does not have a name of the form "*.conf". gentoo-bashcomp should emulate the behavior of portage. Otherwise you might run into issues: e.g. if there is a backup of eselect-repo.conf called eselect-repo.conf~ that contains references to a now removed overlay, gentoo-bashcomp should not try to search for completions in the now nonexistent repo directory Closes: https://github.com/gentoo/gentoo-bashcomp/pull/5 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
* fix repos.conf files pattern matching.gentoo-bashcomp-20190211Patrice Clement2019-02-111-1/+1
| | | | | | | Courtesy of Duncan <1i5t5.duncan@cox.net>. Closes: https://bugs.gentoo.org/562626 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
* emerge: add support for sets completion.gentoo-bashcomp-20180624Louis Sautier2018-06-241-0/+6
| | | | | | | | | | Based on Marco Genasci's patch and slightly modified to get rid of the unnecessary call to xargs. Courtesy of Marco Genasci <fedeliallalinea@gmail.com>. Closes: https://bugs.gentoo.org/235454 Closes: https://github.com/gentoo/gentoo-bashcomp/pull/4
* Remove OpenRC completions since they are provided upstreamgentoo-bashcomp-20180302William Hubbs2018-03-024-200/+0
|
* add completion for emerge --rage-cleanLouis Sautier2018-03-021-3/+3
| | | | | | This PR adds the --rage-clean option. Closes: https://github.com/gentoo/gentoo-bashcomp/pull/2
* Add completion for emerge --autounmask-writeLouis Sautier2018-03-021-1/+2
| | | | Closes: https://github.com/gentoo/gentoo-bashcomp/pull/1
* Makefile: introduce a new 'install' rule.gentoo-bashcomp-20140911Michał Górny2014-08-311-0/+31
| | | | That handles proper install paths and substitutions.
* Split completions by completed command.Michał Górny2014-08-3122-1652/+1788
|
* Split common functions out of completions.Michał Górny2014-08-312-389/+396
| | | | | The goal is to install the reusable functions in helpersdir from where they can be reused by other completions.
* Move completions into subdirectories.Michał Górny2014-08-314-0/+0
| | | | | completions/ for files going to completionsdir, compat/ for those going into compatdir.
* Makefile: remove the outdated install target temporarily.Michał Górny2014-08-311-9/+0
| | | | | It is just wrong, so there is no point in keeping it for now. I will write new rules after refactoring the code.
* Style and performance improvements based on suggestions by Steven J. Long.Ryan Hill2013-08-121-29/+28
|
* Fix whitespace.Ryan Hill2013-08-121-72/+72
|
* Credit Alexander.gentoo-bashcomp-20130804Ryan Hill2013-08-041-0/+3
|
* Add support for repos.conf (bug #478444).Ryan Hill2013-08-041-15/+94
| | | | | | Newer portage versions use repos.conf to set paths to different repos rather than PORTDIR/PORTDIR_OVERLAY. This adds a parser for these ini-style config files.
* Support bash-completion-2.1 (bug #477024).Alexander Tsoy2013-07-294-136/+87
| | | | | | | - Do not use deprecated have() function. - Move gentoo_style_init completion in separate file. It doesn't support dynamic loading so it should be installed in compatdir. - Cleanup spaces at the end of lines.