1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 21:51:40 +02:00
Commit graph

4526 commits

Author SHA1 Message Date
Matthew Martin
7ec05332a2 45939: Add _pgids type 2020-06-01 21:18:23 -05:00
Doron Behar
56fffd5482 gitlab !14: modutils completion: Fix getting the value of kver from opt_args
To get the _value_ of either of the options -S, -k or --set-version,
the (i) subscript flag is not needed.
2020-06-01 08:21:39 +00:00
Yasuhiro KIMURA
911500d3be 45934: _subversion: Make 'svnliteadmin' completed same as 'svnadmin'
In FreeBSD base system svnadmin is installed as 'svnliteadmin'. So
make 'svnliteadmin' completed same as 'svnadmin'.
2020-05-28 21:53:21 +00:00
Matthew Martin
53052335b9 45831: Add _vi completer 2020-05-17 15:18:26 -05:00
noraj
494f6bcb3c gitlab !13: tar supports zstandard (zstd)
Problem

Variants of tar based on libarchive or GNU tar can support extracting
zstd based files.

Solution

Add this type of to _tar_archive.

From noraj <gitlab@mg.gitlab.com>
2020-05-09 18:59:03 -07:00
Eitan Adler
d9ad7e6b89 unposted: libarchive tar can extract zip files
Problem

Variants of tar based on libarchive can extract zip files but
`tar xf <tab>` does not complete this type of file.

Solution

Add this type of to _tar_archive.
2020-05-07 20:03:39 -07:00
Daniel Shahaf
8498f8864e unposted: Use alternation patterns rather than brace expansion
(Cf. discussion on GitLab !12.)
2020-05-07 22:23:26 +00:00
Jun-ichi Takimoto
0e6ccfdb2b 45614: update _dnf 2020-05-03 18:28:34 +09:00
Daniel Shahaf
d128bc0bd4 45731: _debsnap: New completion function. 2020-05-03 01:29:05 +00:00
Daniel Shahaf
deca7c9285 45730: _arguments: Add the -0 flag, which makes $opt_args be populated sanely.
Also, write/extend docstrings for sepjoin() and zjoin().
2020-05-03 01:27:36 +00:00
Daniel Shahaf
57a3a9a746 45752/0002: _gcc: Complete --output like -o. 2020-05-02 00:48:30 +00:00
Daniel Shahaf
071d7956e6 45752/0001: _gcc: Add .cpp and .hpp to the ignored extensions list. 2020-05-02 00:48:30 +00:00
davey hathorn
013c87e3f3 github #54: Fix dig completion error 2020-04-21 00:26:59 -05:00
dana
c70d734363 45655: _retrieve_mac_apps: Update for recent macOS 2020-04-05 20:09:10 -05:00
Daniel Shahaf
51091e19cd 45649: completion: Simplify Unison completion. No functional change. 2020-03-29 20:56:20 +00:00
Henri Menke
83f7dc7806 45646: completion: Unison: Honour the $UNISON variable
By default Unison uses the ~/.unison directory to store its cache and
profiles.  However, this location is configurable through the $UNISON
environment variable.  Quoting from the manual [1]:

> If the environment variable UNISON is defined, then its value will be
> used as the name of this directory.

This patch enables users to move the .unison directory and still enjoy
zsh completion for profiles.

[1] https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html#unisondir
2020-03-29 20:17:29 +00:00
Gastón Haro
a6610c4a17 github #46: _git-restore: Complete arguments to the --source option after a '=' sign 2020-03-28 22:49:41 +00:00
Gastón Haro
f306221674 github #46: Better restrict git-restore(1) file completions
Add support to the -S and -W options.

Remove the facility for completing files from the tree specified by the
--source argument since, upon testing in git 2.26.0, that doesn't seem
to be correct behaviour.  (Note git-restore(1) says the command is
experimental and its semantics may change.)  See discussion on the PR
for details.
2020-03-28 22:49:41 +00:00
Daniel Shahaf
36df1e4f78 45623: _quilt: Add subcommand descriptions 2020-03-27 01:14:42 +00:00
Daniel Shahaf
174aedcf7f 45622: _quilt: Categorize subcommands 2020-03-27 01:14:42 +00:00
Daniel Shahaf
a30da73187 45572: _sshfs: Complete some more options 2020-03-17 14:03:50 +00:00
dana
754658aff3 unposted: _git: Fix copy/paste error in earlier commit that broke git stash drop
This was broken by workers/44923 (8aa84bd5fc)
2020-03-13 09:46:14 -05:00
dana
cb7aadfd2a 45535: _lz4: Order compression levels numerically 2020-03-13 09:38:25 -05:00
dana
c2e46ee43b 45534: _hdiutil: Update image-file extensions, image/disk formats, &c. 2020-03-13 09:38:23 -05:00
dana
3f7b81e24e 45531: _sh: Complete options more accurately
Committing without handling of +x option variants (line 10) pending resolution
of workers/45422
2020-03-13 09:37:37 -05:00
dana
359e0dae2b 45424: completion: Add **/sbin to PATH when completing commands like sudo
* Update _command_names to add **/sbin to PATH when not otherwise overridden
  and _comp_priv_prefix is set. This ensures that, on systems where
  unprivileged users don't have **/sbin in their PATHs, we can still complete
  those commands when they try to run them with e.g. sudo

* Update functions for privilege-gaining commands to use the aforementioned
  mechanism

* Fix some other minor issues in _pfexec and _doas

Changes from the posted diff:

* Fix a minor redundancy in _doas

* Add _c_p_p=( '' ) hack to _su
2020-03-11 16:26:41 -05:00
Romain Porte
0d7f888945 45524: Add completion for dscverify(1) from Debian's devscripts. 2020-03-10 15:31:24 +00:00
Daniel Shahaf
6fc8e8628f Merge remote-tracking branch 'origin/master' into 5.9
* Test/D02glob.ztst:
  On the "unreadable directories can be globbed (users/24619, users/24626)"
  test, resolve conflicts by removing the Cygwin-only skip that has been added
  in master, since the test is passing on this branch.  This effectively reverts
  workers/45492.  See discussion starting in workers/45504.

* origin/master:
  unposted: Remove 'sgi', as that OpenBSD port has been discontinued.
  45509: fix typos in B01cd.ztst
  45490 (+45495 and a test): refactor rlimits.c
  github #49: Fix typo: longson should be loongson
  users/24710: Fix job control problem with sudo.
  45492: skip test added by users/24633 on Cygwin
  45488: COMP_WORDS for bash need "$@"-style quoting
  45487: Missing mod_export declarations for AIX
  45447: Complete vcs_info_hookadd and vcs_info_hookdel. Expose _vcs_info_hooks as a top-level helper function.
  45463: test: kill: Document why we use SIGURG
  45453: builtins: kill: Do not signal current process group when pid is empty
  45452: builtins: kill: Add `kill ''` regression test with explicit sigspec
  45451: builtins: kill: Add basic test suite
  github #48/0002: vcs_info git: properly detect bare repositories
  github #48/0001: vcs_info git: avoid warnings in bare repositories
  unposted: Post-release version bump
  unposted: Release 5.8
  CVE-2019-20044: Update change log for preceding commits
  Update NEWS/README
  Add unsetopt/PRIVILEGED tests
  Clean up error-message white space
  Improve PRIVILEGED fixes (again)
  Improve PRIVILEGED fixes
  Drop privileges securely
  unposted: V01zmodload: Fix failing test from workers/45385
  45423: _su: Improve arg handling, shell look-ups
  unposted: _zip: Recognise '--'
  45385: Add a test for 'zmodload -Fa' preemptively disabling ("blacklisting"?) features.
  unposted: Test release: 5.7.1-test-3
  zsh/system: Fix infinite loop in sysread
  _diff_options: Restore -w completion lost in workers/43351
  unposted: Fix ChangeLog typo.
  45368: Add tests for workers/45367's issue about double slashes in 'cd -P' and /home/daniel/in/zsh.
  45373: Fix ERR_EXIT bug in else branch of if.
  45372: Record a symlink loop bug involving :P
  45365: _git: Fix __git_recent_branches for the case when a commit has an empty message
  45343: Queue signals around arithmetic evaluations
  45344: Document where third-party completion functions should be installed.
  45345: internal: ztst.vim: Fix highlighting of zsh comments in test payload
  unposted: internal: Add some comments and fix indentation.  No functional change.
  45340: internal: Document the difference between paramtab and realparamtab.
  45332: _git: add completion for git-version
  _brace_parameter: add missing \

Conflicts:
	ChangeLog
	Test/D02glob.ztst
	Test/V01zmodload.ztst
2020-03-07 21:36:46 +00:00
Daniel Shahaf
dd50f125b5 unposted: Remove 'sgi', as that OpenBSD port has been discontinued.
See https://www.openbsd.org/sgi.html and discussion on github PR #49.
2020-03-06 14:00:34 +00:00
Bryan Irvine
2f419b332d github #49: Fix typo: longson should be loongson 2020-03-05 15:44:12 +00:00
Marc
f7c6a0008b 45488: COMP_WORDS for bash need "$@"-style quoting 2020-02-25 09:55:28 +00:00
Daniel Shahaf
50df0e0bb9 45447: Complete vcs_info_hookadd and vcs_info_hookdel. Expose _vcs_info_hooks as a top-level helper function. 2020-02-19 10:18:30 +00:00
dana
dd523255cc 45423: _su: Improve arg handling, shell look-ups
Differences from ML post:

* Properly fix escaping issue with $usr (needs unescaped first)

* Make $shell emptiness check easier to read (per feedback)
2020-02-14 09:42:12 -06:00
dana
8037462895 unposted: _zip: Recognise '--' 2020-02-07 14:05:48 -06:00
Martin von Wittich
1f238665f6 _diff_options: Restore -w completion lost in workers/43351 2020-02-06 13:24:00 -06:00
WGH
e71ba9704f 45365: _git: Fix __git_recent_branches for the case when a commit has an empty message 2020-02-02 07:32:14 +00:00
Eitan Adler
e626f57613 45332: _git: add completion for git-version
Signed-off-by: Eitan Adler <lists@eitanadler.com>
2020-01-19 23:32:37 +00:00
Mikael Magnusson
387247864e _brace_parameter: add missing \ 2020-01-19 16:11:14 +01:00
Daniel Shahaf
bcd78756c8 45313: _git: Support completion from outside of a worktree when --git-dir/--work-tree are specified on the command line
Revised version of workers/41523.
2020-01-17 21:52:45 +00:00
Daniel Shahaf
e899c21863 Merge remote-tracking branch 'origin/master' into 5.9
Right now, as we're preparing to tag the 5.8 release, the 5.9 branch is
maintained as a topic branch off master.

* origin/master:
  45287: zshexpn: Describe parameter elision and add some introductory prose
  45302: bin_umask(): Queue signals around umask().
  users/24656: docs: Add an example of setting and querying zstyles
  users/24659: Cross-ref doc for matchers.
  45296: D02glob: Clean up after test from users/24633
  45290: New helper script for listing XFail tests.
  users/24633: Add an xfail test for users/24619.
  unposted: additional typo fix
  45280: _git: add -local variants
  users/24628 (fixed): More doc for selectw-word-style widgets.
  45266: Fix losetup completion, broken in da085b7a20 (41720).
  unposted: Fix punctuation.
  use /dev/fd on Cygwin for process substitution
  unposted: Two additional typo fixes.
  Fix typos reported by codespell in shell code
  Fix typos reported by codespell in Src/
  45269: Fix misspellings in completions and elsewhere.
  45261: _gcc: Detect clang-as-gcc
  unposted: internal: Remove Vim modeline that interferes with ztst.vim.
  unposted: internal: ztst.vim: Use :syn-sync to work around (#x) and "`\\\\\\\\`" confusing the highlighting.
  unposted: internal: zyodl.vim: Support glob qualifiers in example()'s
  unposted: internal: zyodl.vim: Support yodl comments.
  github #44: Allow completion for picocom to list symlinks to character devices
  45245: _gcc: add some clang specific warnings
  45231: _rsync: When completing remote modules, ignore more of the motd.
  unposted: _tac: Eliminate superfluous variable
  45226: _man: Improve completion of file paths
  45184: Clarify documentation of %-sequences understood by compadd -[Xx]
  45239: Remove 'appendhistory' from zsh-newuser-install
  45218: add more options to swaks completion
  45196: fix completion after make -C, allowing for -C being used multiple times
  unposted (after 45183): Fix yodl error: "contrib.yo:4457: No macro: back(...)".
  45181: Fix workers/45164: ${(S)%%} will now consider the empty string as a potential match.
  45183: Improve documentation examples
  unposted: Add some tests for ${(S)}, including a regression test for workers/45164.
  45169/0002 (tweaked for trailing newlines): Add an expected-to-fail test for workers/44007.
  45169/0001: In the test suite, allow test cases to be marked as expected to fail.
  users/24582 + users/24583: Add regression tests for the previous commit.
  24581: Fix array assignments in shell word splitting and completion.
  45160: zshexpn: Expand documentation of (S)
  45150 + 45152: zshexpn: Use a more minimal example in the documentation of (#b).
  unposted: internal: Vim ztst support: Add an ftplugin in addition to the syntax highlighter.
  45130: _multi_parts: Always pass -f to compadd if given by caller
  unposted: zerrmsg(): Fix macro guard missed in previous commit
  unposted: ChangeLog for last commit
  internal: Allow %L in zerrmsg() in non-debug builds, too.
2020-01-15 22:49:09 +00:00
Daniel Shahaf
22c0fe02a5 45288: _git: Complete bisect/new as well as bisect/bad.
Also, complete the bisect/old-$commithash ref names.
2020-01-15 22:41:25 +00:00
Oliver Kiddle
06a9af4f59 unposted: additional typo fix 2020-01-11 17:41:14 +01:00
Eitan Adler
5482d65d5c 45280: _git: add -local variants
Technically all timezone formats support the "-local" suffix but it is
not meaningful for all of them. As such just list out the specific
formats which it does.

Also adjust the 'default' description
2020-01-11 17:37:44 +01:00
Daniel Shahaf
70d6d0d86c 45266: Fix losetup completion, broken in da085b7a20 (41720). 2020-01-10 12:46:38 +00:00
Daniel Shahaf
742ab1283b unposted: Two additional typo fixes. 2020-01-09 13:59:05 +00:00
Mikael Magnusson
66caa81ab7 Fix typos reported by codespell in shell code 2020-01-09 14:51:08 +01:00
Jens Schleusener
11dbe4c286 45269: Fix misspellings in completions and elsewhere. 2020-01-09 13:42:02 +00:00
dana
4858e868dc 45261: _gcc: Detect clang-as-gcc 2020-01-08 17:54:46 -06:00
Damien Thébault
58ff4adbb0 github #44: Allow completion for picocom to list symlinks to character devices 2020-01-07 14:55:46 +00:00
Eitan Adler
8500403b66 45245: _gcc: add some clang specific warnings 2020-01-06 22:01:09 -06:00
Daniel Shahaf
7542732df6 45231: _rsync: When completing remote modules, ignore more of the motd.
We cannot use the --no-motd option because it inhibits the modules
listing.

We cannot look for a blank line because there will not be a blank line
if the "motd file" does not end with a newline.

Looking for tabs is an improvement.  Any tabs in the motd will still
cause extraneous matches, but there's nothing we can do about that.

While here, show the modules in the order listed.
2020-01-06 02:28:54 +00:00
dana
3ff0b189a0 unposted: _tac: Eliminate superfluous variable 2020-01-05 14:51:04 -06:00
dana
0d3a62d931 45226: _man: Improve completion of file paths 2020-01-05 12:13:01 -06:00
Oliver Kiddle
6170cd0c17 45218: add more options to swaks completion 2020-01-03 23:02:52 +01:00
Oliver Kiddle
e6c5482dd8 45196: fix completion after make -C, allowing for -C being used multiple times 2020-01-03 23:01:00 +01:00
dana
02a33dd071 45130: _multi_parts: Always pass -f to compadd if given by caller 2019-12-26 20:26:58 -06:00
Daniel Shahaf
3834c423ab unposted: _stdbuf: Fix mismatch between the long options on the one hand, and the short options and descriptions on the other hand. 2019-12-23 08:25:48 +00:00
Baptiste BEAUPLAT
058cc10054 44698, 45000: Baptiste BEAUPLAT: Completion for sbuild 2019-12-16 12:07:39 +01:00
Aurélien Olivier
2fd17cae1c github #36: Add completion file for GNU Stow 2019-12-16 12:07:33 +01:00
Sebastian Gniazdowski
6c0ebbe1d9 44970: _brace_parameter: Update the description of S flag 2019-12-04 22:52:28 +01:00
Daniel Shahaf
06dddd0b98 Revert "44904: _subversion: Complete multiple comma-separated arguments to --show-item=<TAB>."
This reverts commit b06117ad21.

Reverted upstream in r1870750.
2019-12-03 12:27:13 +00:00
dana
0c59705e9e unposted (cf. 44967): _alsa-utils: Fix minor syntax error in arg spec 2019-12-02 17:26:55 -06:00
Oliver Kiddle
a833fe4a18 unposted: another place to complete selinux contexts that was missed in 44781 2019-12-01 22:59:36 +01:00
Oliver Kiddle
6a3e418fb6 44968: cleanup and update objdump and readelf completions 2019-12-01 22:49:47 +01:00
Sebastian Gniazdowski
055113d775 44967: Completion for aplay from alsa-utils 2019-12-01 22:24:16 +01:00
Daniel Shahaf
4bb8c937d8 unposted: _sqlite: Fix syntax error 2019-12-01 00:02:30 +00:00
Daniel Shahaf
dae3e135d8 44948: _subversion: Make _svn_controlled offer everything rather than nothing. 2019-11-29 20:34:34 +00:00
Daniel Shahaf
a4f5c345c8 44947: _subversion: Complete the 'auth', 'changelist', 'patch', 'resolve', and 'x-unshelve' subcommands. 2019-11-29 20:34:32 +00:00
Daniel Shahaf
a6b6b650fb 44946: _subversion: Make _svn_conflicts not offer all files in the directory. 2019-11-29 20:34:30 +00:00
Wayne Davison
95882efbf7 44912: more quoting fixes in _expand
Don't set done_quote=1 if the glob result is empty.
2019-11-26 16:27:51 -08:00
Oliver Kiddle
8aa84bd5fc 44923: update options for git 2.24 2019-11-24 22:58:38 +01:00
Oliver Kiddle
5df672b9d7 44896: use opt_args to find base directory and use it for $(CURDIR) 2019-11-24 22:56:21 +01:00
skirit
a8b0d399e5 unposted (salsa.debian.org MR!1): _ip: Complete the -brief option 2019-11-11 16:00:16 +00:00
Daniel Shahaf
b06117ad21 44904: _subversion: Complete multiple comma-separated arguments to --show-item=<TAB>.
Upstream revision: r1869578 (for 1.14.0)
2019-11-09 12:39:48 +00:00
Daniel Shahaf
ed26bf92d6 44897: _subversion: Complete --show-item=changelist 2019-11-07 12:04:27 +00:00
Oliver Kiddle
d2289b42a7 44895: complete options for state change notifications and other improvements 2019-11-06 21:32:25 +01:00
Eitan Adler
0a296d15ac 44882: add completion of -save-stats flag 2019-11-06 21:26:47 +01:00
Oliver Kiddle
64661103f0 unposted: fix missing local declarations in _sequence 2019-11-06 21:15:20 +01:00
Sebastian Gniazdowski
2c94b597bd github #41: Extend _dbus with dbus-launch completion 2019-10-29 15:59:02 +01:00
Oliver Kiddle
248ae0b77e unposted: tweak to check for openzfs rather than Solaris 2019-10-29 15:55:25 +01:00
Teddy Heinen
5cf1d6dfd1 github #40: Teddy Heinen: adjust zfs completion to use acltype on linux instead of aclmode 2019-10-28 23:15:37 +01:00
dana
9b69e84729 44846: _dates: Fix regression caused by workers/44274 2019-10-18 18:47:21 -05:00
Oliver Kiddle
308295d4d2 c.f. 44831: remove completion functions for long dead projects 2019-10-18 22:57:24 +02:00
Oliver Kiddle
ea78d0d4ae c.f. 44831: remove completion functions included in upstream projects 2019-10-18 22:52:32 +02:00
Oliver Kiddle
a891557b49 44849: completion updates for changes in OpenBSD 6.6 2019-10-18 22:47:32 +02:00
Daniel Shahaf
1156b2aa44 44812: _subversion: Fix syntax error in 44726/0001 2019-10-14 01:24:51 +00:00
Daniel Shahaf
c263b79c59 44809: _typeset: Complete 'functions -c' 2019-10-14 01:24:47 +00:00
dana
c6a14bd341 44767: _description: Ignore -J 2019-10-12 02:02:23 -05:00
dana
b79b779166 44681 (tweaked): _composer: Eliminate questionable eval, fix quoting issue 2019-10-12 02:02:15 -05:00
Daniel Shahaf
dca638e301 44797: _git-config: Complete unknown options from 'git help -c'. 2019-10-02 17:11:11 +00:00
Oliver Kiddle
0cc98dfe05 44800: complete tmux formats 2019-10-01 23:15:21 +02:00
Oliver Kiddle
d89fad7b4f 44799: new pv completion 2019-10-01 23:13:22 +02:00
Oliver Kiddle
7d2d242b30 44798: completion option update 2019-10-01 23:10:17 +02:00
Oliver Kiddle
934fc7d116 44783, 44791: mark some repeatable options with * in the _arguments specs 2019-09-30 23:20:24 +02:00
Oliver Kiddle
2c03873053 44788: handle newer rpm commands like rpmkeys, rpmsign and update options 2019-09-30 23:14:36 +02:00
Oliver Kiddle
095a012152 44782: new completions for avahi and pkgin 2019-09-27 01:48:17 +02:00
Gautam Iyer
3c761b5f23 gitlab !9: Rudimentary seafile client completion 2019-09-27 00:44:10 +02:00
Doron Behar
6711985b4b gitlab !11: luarocks: Fix/improve logic of cache validation
Also: Remove unnecessary quoting of helper function calls.
2019-09-27 00:34:30 +02:00
Oliver Kiddle
4f48ce208b 44781: add completion of SELinux contexts 2019-09-27 00:27:45 +02:00
Oliver Kiddle
81be5d1dce 44780: add completion to getent for the utmpx key on FreeBSD 2019-09-27 00:23:50 +02:00
Oliver Kiddle
0ff02590c3 44779: completion for new git switch and git restore commands 2019-09-27 00:16:54 +02:00
Jun-ichi Takimoto
39e39910eb 44768: _tar: improve completion of long options 2019-09-20 12:41:54 +09:00
Tobias Schulte
bed4e91681 github #38: fix completion text for git update-index --chmod 2019-09-18 16:29:47 +00:00
Daniel Hahler
597acaab4f 44722: _make: use --always-make instead of .PHONY for GNU make
Using ".PHONY" might actually execute (phony) targets then, while
"--always-make" triggers processing of all targets, respecting `-n`
(`--dry-run`).
(This can be seen with `make -nsp .PHONY` in
https://github.com/neomake/neomake/tree/76b110d49a, where it actually
causes infinite processing then)

".PHONY" was used since the beginning here (37012f06a [1]).

As for bmake (which also uses `.PHONY`): there does not appear to be a
similar option for it.
While it might work better there (i.e. not causing targets to be run),
it causes an error at least when testing it quickly - which indicates
that it behaves as if using any other non-existing (or special) target
there maybe:

> bmake: don't know how to make .PHONY. Stop

This was added in ecc0a5ece [2] (workers-39654).

Since it uses `-s -f "$file" -V.ALLTARGETS` with `bmake` before to get
targets explicitly, there might not be a reason for calling `bmake` with
`-nsdg1Fstdout … .PHONY` additionally in the first place?!

1: https://github.com/danielshahaf/zsh/commit/37012f06a
2: https://github.com/danielshahaf/zsh/commit/ecc0a5ece
2019-09-06 08:47:55 +02:00
Daniel Shahaf
2829e32e3c 44726/0002: _subversion: Update --show-item= completion to 1.12.0. 2019-09-04 02:56:54 +00:00
Daniel Shahaf
770dca2c53 44726/0001: _subversion: Use 'svn help -v' to show global options, experimental options, and experimental subcommands (upstream issue SVN-4828, to be released in Subversion 1.13.0) 2019-09-04 02:56:54 +00:00
Oliver Kiddle
2b41606fe7 44614: apt list option completion 2019-08-19 17:29:49 +02:00
Lajos Koszti
5ff3529caf 44633: complete ansible-vault actions like create, edit, etc. 2019-08-19 16:25:54 +02:00
Oliver Kiddle
359a8fce00 44587: completion option updates 2019-08-19 16:15:49 +02:00
dana
c6254f2a93 44675: _find: Fix return status 2019-08-17 16:30:34 -05:00
Eric Cook
5fd80faf98 24102: _user_admin subuids and subgids 2019-07-30 09:54:18 +01:00
Oliver Kiddle
a4f3df89ab 44356: complete ansible callback plugins for the relevant environment variable's value 2019-07-19 01:44:20 +02:00
Oliver Kiddle
4b5b1563a8 44551: update for new git changes 2019-07-19 01:42:26 +02:00
Jun-ichi Takimoto
1d37624ad6 44389: update _iostat and _vmstat for BSD
common parts are separated into _bsd_disks and _fbsd_device_types
2019-06-03 22:33:10 +09:00
Oliver Kiddle
f702e17b14 unposted: remove spurious reference to nonexistent completion function 2019-05-23 01:22:50 +02:00
Oliver Kiddle
6a0874cad6 44349: completion option updates 2019-05-23 01:19:02 +02:00
Oliver Kiddle
09917e558b 44308: update Linux modutils completion 2019-05-20 00:10:55 +02:00
Oliver Kiddle
09c6acf7b2 44279: completion updates for Dragonfly 5.4, FreeBSD 12 and OpenBSD 6.5 2019-05-09 00:17:04 +02:00
Oliver Kiddle
cd6fd2b0a3 44274: allow finer control of completion match soring with compadd's -o option 2019-05-07 23:24:49 +02:00
Gautam Iyer
5200637bda gitlab !6: Rudimentary rclone completion 2019-05-07 22:03:14 +02:00
Gautam Iyer
f7850406c9 gitlab !7: Minor fixes to _lp and _gv completion 2019-05-07 00:06:39 +02:00
Doron Behar
6bf8c4720d gitlab !8: Support completion of installed lua rocks' versions 2019-05-06 23:48:00 +02:00
Doron Behar
cecaad96cb gitlab !4: Add pandoc completion 2019-05-06 23:39:10 +02:00
Doron Behar
2f420b8de3 gitlab !3: Transmission remote completion 2019-05-06 23:31:18 +02:00
Aurélien Olivier
3908987b4a github #33: Add completion file for myrepos (mr) 2019-05-06 17:03:59 +02:00
Laurent Arnoud
191e05b108 github #35: fix _arguments spec for gem push completion 2019-05-06 16:46:13 +02:00
dana
8ce9e20c49 44251: Completion: Fix various wording issues 2019-04-26 17:50:00 -05:00
dana
860bcdd561 44250: Completion: Fix use of -A and -S options to _arguments 2019-04-26 17:48:30 -05:00
dana
d56a43f802 44249: Completion: Handle zsh/files built-ins in _mv and _rmdir 2019-04-26 17:45:35 -05:00
dana
9208e321da 44234: _ssh: Update for OpenSSH 8.0 2019-04-26 17:43:19 -05:00
Matthew Martin
39b0f5540c unposted: _pick_variant: Use ${(P) ::= rather than eval 2019-04-22 22:04:24 -05:00
Matthew Martin
a4f4497207 44242: Completion: Use _pick_variant -b to detect builtins 2019-04-22 22:04:24 -05:00
Jun-ichi Takimoto
ba74b16716 44210: add _findmnt and update _lsblk 2019-04-10 11:59:26 +09:00
Matthew Martin
6f35d6c0d0 44202 (tweaked): _normal: Add -P to reset precommands 2019-04-04 18:45:19 -05:00
Matthew Martin
7d84cde313 44201: _command_name: Check for external forcing precommand 2019-04-04 18:45:19 -05:00
Matthew Martin
5facfd3280 44200 (tweaked): Completion: Append to precommands in _normal 2019-04-04 18:45:19 -05:00
Matthew Martin
bb790c8f81 44199: _normal: Use zparseopts 2019-04-04 18:45:19 -05:00
dana
c749a06bc9 44158: Completion: Add _postgresql
Adjusted to fix minor copy/paste error in __pgsql_cfg_params
2019-04-01 14:44:42 -05:00
dana
683c2cc1ca 44160 (tweaked): Completion: Add _deb_files, match *.ddeb
Add new helper function for generating Debian package/control files, use it
where applicable

Adjusted only for minor white-space corruption in original patch
2019-03-25 16:19:00 -05:00
dana
fa92c6a1af unposted: _chmod: Adjust _guard pattern
Per off-list feedback from Daniel, use a more context-specific pattern
2019-03-24 23:52:22 -05:00
dana
dc2d8d9c26 unposted: _chmod: Use _guard for mode operand 2019-03-22 17:22:23 -05:00
Matthew Martin
9b267ff1eb 44149: _mkdir, _stat: Use _pick_variant -b 2019-03-21 22:04:55 -05:00
Matthew Martin
8e4566e536 44144: _builtin: Append "builtin" to precommands 2019-03-21 22:04:55 -05:00
Matthew Martin
922cf49830 44155: _pick_variant: Update builtin check 2019-03-21 22:04:55 -05:00
Jun-ichi Takimoto
3e542bcd81 44147: add/update completions for procps-ng
New completions for free, pmap, slabtop, tload. Update _top.
2019-03-22 09:23:42 +09:00
dana
3e67e8347c 44111: _git: Use git rev-list for log messages
This side-steps issues related to `git log` respecting settings like
log.showSignature
2019-03-21 17:02:16 -05:00
Matthew Martin
6331772c5b 44135: Add chmod builtin 2019-03-18 22:17:54 -05:00
Matthew Martin
2f670be951 44135: _chmod: Reformat to minimize next diff. No functional change. 2019-03-17 19:33:11 -05:00
dana
632023acc2 44100: zparseopts: Add -F option, completion, tests; improve documentation
* Enable zparseopts to perform basic usage validation (aborting on an
  unrecognised option-like parameter)

* Officially document the resolution of ambiguous option specs
2019-03-12 19:03:56 -05:00
Jun-ichi Takimoto
36290f3e8e 44101: _vim: better support for nvim 2019-03-08 17:09:26 +09:00
dana
f21d54a381 unposted: _zftp: Use 'post' pattern matching
_zftp's use of `#compdef -p`, combined with inaccurate sub-command matching in
the function, was causing it to clobber the completion for other commands,
notably zf_mkdir from zsh/files. To avoid this, use -P instead
2019-03-06 18:06:07 -06:00
dana
a41f09f862 44099: Completion: Add _trash 2019-03-06 17:37:11 -06:00
dana
3efacdbacf 44087: _getconf: Complete options, config variables on more systems 2019-02-27 19:31:55 -06:00
dana
d669a9a045 44090 (re: 44085): _remote_files: Don't set QUOTING_STYLE
The syntax was incompatible with some shells, and it's probably not a big
enough concern to work around it
2019-02-27 19:27:59 -06:00
dana
c01f10db5e 44085: _remote_files: Prevent ls/alias settings from mangling file listings 2019-02-26 14:31:00 -06:00
dana
29222ca186 44080: Completion: Fix several option-description typos 2019-02-26 01:21:29 -06:00
dana
2331785afb unposted: _less: Fix typo
Reported here: https://www.reddit.com/r/zsh/comments/au98zv/_/
2019-02-24 14:37:34 -06:00
dana
d4f9899739 44077: completion: Fix GNU _pick_variant patterns, partially fix getent -s 2019-02-22 13:20:16 -06:00
dana
7930905f0c 44076: _column: Support Debian, add missing options, adjust wording
Tweaked per off-list discussion with Daniel: We agreed that it would be
best to side-step the wording disagreement between the BSD and
util-linux implementations by using our own description for -x, which
was borrowed from the one for `print -ca`
2019-02-22 13:14:16 -06:00
Doron Behar
109975b1b5 gitlab !5: Add new abcde completion. 2019-02-09 10:08:20 +01:00
Hiroki Noda
a8c9daf7f1 github #31: Add new demangle style, rust and dlang 2019-02-09 10:08:03 +01:00
dana
0220822d82 44034: _date_formats: Complete %9./%N, adjust wording 2019-02-03 13:20:32 -06:00
dana
7b97d4f749 44033: Add completion for dos2unix/unix2dos 2019-02-03 11:58:42 -06:00
Fredric Silberberg
4f6ac08af3 github #32: Fix a typo in the git tag completion. 2019-01-28 00:48:23 +00:00
dana
a76c6def15 44001: _brace_parameter: Complete (q+) 2019-01-21 15:17:57 -06:00
dana
96a7993801 43990: _opkg: Support gain-privileges 2019-01-18 01:45:27 -06:00
Peter Stephenson
88ad890c05 users/23829: add and coument file-split-chars style 2019-01-08 14:19:19 +00:00
dana
35c7b0f9e9 43974: _git: Always offer -F/-m for git tag 2019-01-04 15:12:31 -06:00
dana
f7f5b7f4ee 43960: Add full completion for exec and setsid 2019-01-01 08:01:14 -06:00
dana
1f8bea2247 43959: Add completion for strongSwan, &al.
Also update _urls to complete unix:// URIs as for file://
2019-01-01 06:49:08 -06:00
dana
9dde124818 43914 (tweaked): Add completion for Composer
Tweaks: Adjusted spelling, fixed minor idiomatic issues
2018-12-30 09:54:54 -06:00
dana
79fae27f7c 43930: Improve _multi_parts performance 2018-12-30 09:38:06 -06:00
dana
e75c59f7f5 43928: _alternative: Evaluate (...) action syntax as with _arguments 2018-12-23 07:36:11 -06:00
dana
43247252dd 43897: Add/update various completion functions
* Update tail to support -q/-v on NetBSD
* Add several new functions (with one change needed to _hosts compdefs)
2018-12-17 14:49:33 -06:00
dana
f8864ac0c8 43895: _watch: Complete for procps/-ng watch 2018-12-17 14:45:14 -06:00
dana
e64bd2ad4c unposted: _dig: Fix _arguments syntax error 2018-12-14 17:44:05 -06:00
dana
90b2654b7e 43871: _files: Support -F '(pat ...)' as with _path_files 2018-12-09 14:54:37 -06:00
Peter Stephenson
42020cdabb 43861: make "(#" completion safer by checking for ")" 2018-12-04 17:19:45 +00:00
Peter Stephenson
7f62255b49 43860: Complete glob flags at start of word. 2018-12-04 16:57:05 +00:00
Daniel O'Connor
b248b714a9 43830: _cu: Complete /dev/cu.* 2018-11-16 21:36:53 -06:00
Jun-ichi Takimoto
35afea0772 unposted: _zcat: support macOS 2018-11-15 21:02:22 +09:00
dana
e25f890589 43809: Suppress npm update checks during completion 2018-11-13 13:06:29 -06:00
dana
df12f6cd2f unposted (cf. 43800): Update strftime completion 2018-11-13 13:01:47 -06:00
Oliver Kiddle
0b3b52778b 43819: expand adb completion to also cover options to adb backup 2018-11-12 11:09:55 +01:00
Oliver Kiddle
082f703ccd 43818: complete math functions for other modules besides zsh/mathfunc 2018-11-12 10:34:32 +01:00
Oliver Kiddle
d5fec6b512 43816: various completion option updates 2018-11-12 10:32:41 +01:00
Oliver Kiddle
f6495ebae8 43817: update options in btrfs completion through to btrfs 4.17.1 2018-11-12 10:32:37 +01:00
Oliver Kiddle
b96dac3287 43813: for powerd add units, default values and allow option arguments in the same word as the option 2018-11-12 10:32:27 +01:00
Oliver Kiddle
8d2622ecba 43812: allow repeats of gcc's -Wsuggest-attribute option 2018-11-12 10:32:15 +01:00
Oliver Kiddle
742bd20277 43784: clarify descriptions on options related to match sorting 2018-11-08 11:01:20 +01:00
Oliver Kiddle
f0655371a6 unposted (c.f. Bart: 43739): use a correct description for the @ parameter expansion flag 2018-11-08 09:33:58 +01:00
Jun-ichi Takimoto
e5465c0434 43761: update five completion functions for darwin 2018-11-07 21:01:54 +09:00
Peter Stephenson
916ba78cd7 43752: Fix _expand quoting.
Quoting was not applied properly if globbing failed or was not applied.
2018-11-03 19:36:06 +00:00
Oliver Kiddle
58bfa1665b 43748: fix completion for ack 3beta 2018-11-02 01:09:47 +01:00
Wieland Hoffmann
11c84dcef4 github #29: Add completion support for Gits --color-moved option and color settings
--color-moved was added in Git 2.15.
2018-11-02 00:45:35 +01:00
Jun-ichi Takimoto
ce048aee38 43746: _ping: update for BSD and Darwin 2018-10-31 19:24:45 +09:00
Jun-ichi Takimoto
967c964e21 43744: _sysctl: support procps-ng, NetBSD
with several updates for other OS
2018-10-31 19:17:59 +09:00
Jun-ichi Takimoto
a4e435b873 43723: _mkdir: fix builtin mkdir and support darwin 2018-10-24 17:36:15 +09:00
Jun-ichi Takimoto
4ad04eeb85 43722: _ed, _env, _sort: support darwin
use the same completions as freebsd
2018-10-24 17:32:17 +09:00
Jun-ichi Takimoto
916ed74264 43721: _diff3: detect GNU variant correctly 2018-10-24 17:29:28 +09:00
dana
da05d2cc2b 43718: Use singular completion group descriptions 2018-10-24 00:41:58 -05:00
Marcin Mielniczuk
f413e5e17f 43714: complete lp fit-to-page option 2018-10-23 09:59:10 +01:00
dana
07d06c9fb9 43713: Improve init.d command completion 2018-10-22 15:56:28 -05:00
Oliver Kiddle
ef58491092 43697: match uppercase filename extensions in zathura completion 2018-10-17 17:57:58 +02:00
Oliver Kiddle
8c57505314 43698: update options for git 2.19.1 2018-10-17 17:56:36 +02:00
a-wing
00baf08602 43623: Fix Completion iptables -t raw security 2018-10-08 13:46:32 +00:00
Oliver Freyermuth
cbcf6d1864 43554 (tweaked): Fix zathura completion ignoring multiple plugin directories. 2018-09-25 22:52:57 +00:00
Oliver Freyermuth
e4ca9d8ae3 43544: Fix zathura filename completion derived from *.so plugin name. 2018-09-25 20:33:04 +00:00
Takeshi Banse
67ce7c2bf8 users/23642: Revert _files change from workers/42984
See also users/23635
2018-09-24 19:06:21 -05:00
Noam Barnea
14fa595f66 gitlab !2: _toilet: detect .flf files as well as .tlf ones 2018-09-23 18:04:37 +02:00
Maximilian Bosch
624219e0e4 43502: Search XDG_DATA_DIRS in _setxkbmap completion 2018-09-19 21:24:28 +00:00
Oliver Kiddle
54d2c4fe5d 43464: complete options for the valgrind drd tool and update them for helgrind 2018-09-18 16:38:26 +02:00
Daniel Shahaf
decc78c721 _svn: Allow hyphens in command name aliases.
Used by svn 1.11.0-rc1.
2018-09-14 14:25:07 +00:00
Daniel Shahaf
24bb465566 unposted: _svn: Complete --accept=recommended, new in 1.10.0. 2018-09-12 16:23:43 +00:00
Daniel Shahaf
b44be21525 43443: _git: When completing worktrees, show the ref and hash of each worktree. 2018-09-12 15:12:09 +00:00
Daniel Shahaf
7ae2be3a2f 43442: _git: Break out a helper function. 2018-09-12 15:12:07 +00:00
Daniel Shahaf
b39a102262 43366: _compdef: Change and add sources for completed completion function names.
Use ${(v)_comps} instead of going through $fpath again.  Use
${functions} as well to find more legitimate matches, such as various
__git_foo() helpers defined in ${^fpath}/_git.
2018-09-06 13:58:00 +00:00
dana
f7e874c101 43372: Add completion for e2label 2018-09-05 14:57:55 -05:00
Oliver Kiddle
410c30a25b unposted: git describe's --long and --abbrev options are not mutually exclusive 2018-08-31 23:17:28 +02:00
Oliver Kiddle
36ac12d0b6 43359: further review of git remote set-url completion 2018-08-31 23:10:36 +02:00
pseyfert
e754b18ca7 42810: git remote set-url completion 2018-08-31 22:58:52 +02:00
Jun-ichi Takimoto
7d905fd4fe 43350: _zsh: support --emulate 2018-08-30 00:58:29 +09:00
Jun-ichi Takimoto
5ff259d413 43349: new completion for eog 2018-08-30 00:53:10 +09:00
Oliver Kiddle
b8df07ad06 43351: handle the new diff implementation in the pre-release version of FreeBSD 12 2018-08-29 17:34:43 +02:00
Oliver Kiddle
245503929e 43346: various completion option updates 2018-08-29 17:32:10 +02:00
Anton Shestakov
fcb4f79567 43348: _hg: check for both -r and --rev 2018-08-29 17:27:31 +02:00
Anton Shestakov
06f3bc09c0 43347: _hg: use revsets for suggestions for hg merge 2018-08-29 17:23:04 +02:00
Oliver Kiddle
419625bf87 43345: don't modify global variable in _umountable 2018-08-28 17:41:29 +02:00
Oliver Kiddle
e104d0a6fe unposted: correct completion argument order for dkms 2018-08-28 17:37:14 +02:00
Oliver Kiddle
ab8a1a5824 unposted: completion for argument to strings -s was missing 2018-08-28 17:35:43 +02:00
Oliver Kiddle
9303073a58 unposted: complete also for bsdtar 2018-08-28 17:33:33 +02:00
Oliver Kiddle
50d905cc7a unposted: fix typo in svccfg completion function call 2018-08-28 17:29:13 +02:00
Daniel Shahaf
1c5fb91e71 43331: _diff3: Enhance positional argument descriptions (thanks, Oliver). 2018-08-25 15:54:35 +00:00
Oliver Kiddle
f95635a447 43330: complete more options to cu 2018-08-24 08:04:12 +02:00
Oliver Kiddle
f7deb49513 43329: new diff3 completion 2018-08-24 08:04:12 +02:00
Oliver Kiddle
f4a1c3c4a3 43328: new zeal completion 2018-08-24 08:04:12 +02:00
dana
7bf4f03eb3 unposted: Fix --ascii typo in _man 2018-08-23 18:14:02 -05:00
Anton Shestakov
0e3508f476 43325: _hg: suggest merge tools for -t/--tool 2018-08-23 01:39:43 +02:00
Anton Shestakov
d25c6d59e9 43326: _hg: add completion of -S/--subrepos to many commands 2018-08-23 01:34:24 +02:00
Klas Mellbourn
def92fc006 github #27: add --folder-uri to completion for Visual Studio Code 2018-08-23 01:27:42 +02:00
Oliver Kiddle
01bc3c124a 43301: add some functions from zsh-completions project 2018-08-23 01:19:54 +02:00
dana
9567bfe061 43302: Fix _du -B spec 2018-08-15 16:15:24 -05:00
Daniel Shahaf
8178698bb2 unposted: _make: Allow pasted arguments for GNU make's -j option. 2018-08-13 11:17:21 +00:00
Marc Cornellà
99fd8c0fe9 unposted (PR #26): __git_files: fix double quotation of star
This fixes the double quote introduced by aa160fc8, so that the end result of
the parameter expansion is $pref followed by \* (a quoted star), meaning
`git ls-files` gets a literal star, not an expanded list of matching files, as
was intended in commit cc7437bf.

Fixes completion of `git add ../<TAB>`.
2018-08-12 19:37:47 +00:00
Anton Shestakov
bf8b611820 43254: remove hg -w completion, add hg -S 2018-08-07 09:19:24 +01:00
Anton Shestakov
ac9dfc9e93 43252: fix various hg options for completion 2018-08-07 09:17:09 +01:00
Anton Shestakov
ea4cc2e985 43250: add hg forget, phase, summary completion 2018-08-07 09:14:47 +01:00
Anton Shestakov
ea33441f45 43251: fix some return values of _hg functions 2018-08-07 09:12:04 +01:00
Anton Shestakov
262796ec2e 43253: hg --style deprecated in favour of --template 2018-08-07 09:10:04 +01:00
dana
96ea5e32b4 43207: Improve _bind_addresses, _php
Minor change from the patch as posted to the ML: _php now calls _bind_addresses
with -K, since it can't actually listen on a link-local address.
2018-07-31 20:46:09 -05:00