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

2061 commits

Author SHA1 Message Date
Oliver Kiddle
0b3b52778b 43819: expand adb completion to also cover options to adb backup 2018-11-12 11:09:55 +01:00
Oliver Kiddle
d5fec6b512 43816: various completion option updates 2018-11-12 10:32:41 +01:00
Oliver Kiddle
8d2622ecba 43812: allow repeats of gcc's -Wsuggest-attribute option 2018-11-12 10:32:15 +01:00
Jun-ichi Takimoto
e5465c0434 43761: update five completion functions for darwin 2018-11-07 21:01:54 +09: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
8c57505314 43698: update options for git 2.19.1 2018-10-17 17:56:36 +02:00
Noam Barnea
14fa595f66 gitlab !2: _toilet: detect .flf files as well as .tlf ones 2018-09-23 18:04:37 +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
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
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
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
Daniel Shahaf
1c5fb91e71 43331: _diff3: Enhance positional argument descriptions (thanks, Oliver). 2018-08-25 15:54:35 +00:00
Oliver Kiddle
f7deb49513 43329: new diff3 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
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
dana
79153bec16 43203: Add completion for lua 2018-07-25 12:10:11 -05:00
dana
627c91357c 43196: Add completion for nginx 2018-07-20 11:15:32 -05:00
Jun-ichi Takimoto
e558f23131 43192: _pgrep: simplify completions of list of IDs 2018-07-20 18:40:05 +09:00
dana
3ec9503f49 43186: Add completion for cronie/dcron/Vixie crontab
Minor change from the patch as posted to the ML: BusyBox variant detection has
been expanded to cover dcron (which BusyBox's crontab is forked from).
2018-07-19 21:17:30 -05:00
Jun-ichi Takimoto
218a7e324d 43183: fix '_ttys -o' and use it in _gdb/_pgrep 2018-07-19 17:26:11 +09:00
Jun-ichi Takimoto
71bc1296ed 43189: _install: similar fix as 43187 for option -f 2018-07-19 17:04:09 +09:00
Yasuhiro KIMURA
2a8ecbd2d3 43187: Fix completion error about 'm' option of 'install' command 2018-07-19 04:58:01 +00:00
Jun-ichi Takimoto
6ae241c43a 43182: _lldb: complete process name after option -n 2018-07-18 17:13:11 +09:00
Jun-ichi Takimoto
73a3ad345c 43177: _grep: support bzgrep, and add a few options for macOS 2018-07-18 00:38:10 +09:00
Jun-ichi Takimoto
5f2d265b3a 43164: _gcc: fix 'args=' to 'args+=', and update a few options 2018-07-11 22:34:03 +09:00
Jun-ichi Takimoto
7facf96950 43155: _gcc: escape ':' in action for -std 2018-07-11 00:10:24 +09:00
dana
6fe0c24fdb 43105: Improve pgrep/pkill completion
Contains minor changes to signal completion compared to the patch as originally
posted
2018-07-03 20:04:59 -05:00
Jun-ichi Takimoto
6ac79449d6 43108, 43121: _killall: complete various options 2018-07-02 17:41:39 +09:00
Doron Behar
e96e45ba98 43059: _gpg: Use explicit UIDs for state = public keys.
Use the `--with-colons` option and parse the output according to the
format specified in the documentation.
2018-07-01 16:27:08 +00:00
Jun-ichi Takimoto
bad4729281 43107: add an option to _ttys to complete only open ttys
Use the option in _ps and _watch-snoop
2018-07-01 22:41:15 +09:00
Daniel Hahler
3964c63d02 42746: _vim: handle special values for -u/-U
This is based on state=verbosity from the same file.
2018-06-27 15:38:59 +02:00
Eric Cook
968cf17b2b 43096: _vim: remove duplicate flag 2018-06-27 02:57:27 -04:00
Jun-ichi Takimoto
a0233a74e3 43079, 43086: new utility to complete names of running processes
And new completions for dtruss, fs_usage and sc_usage.
2018-06-25 11:09:14 +09:00
Eitan Adler
03b2cd1bb0 43074: Completion for additional linker options for clang and sanitizers for gcc 2018-06-21 15:01:28 +02:00
Oliver Kiddle
c919fa7f69 43078: add completion for the sed expression 2018-06-21 14:57:39 +02:00
Oliver Kiddle
afd008d96b 43073: various completion option updates 2018-06-21 13:28:24 +02:00
dana
7caec474de 43061: Improve open (macOS) completion 2018-06-20 00:26:41 -05:00
dana
05e4ee0587 43060: Expand stat completion 2018-06-20 00:25:31 -05:00
dana
8dd8bd43e6 43047: Add completion for hostname 2018-06-18 17:54:22 -05:00
Tim Smith
25e9590e09 43006: complete modified files after git stash -- 2018-06-18 09:23:27 +02:00
Oliver Kiddle
4dddf3aa6e users/23484: be consistent on matcher specs for git branches to fix issue with partial matching 2018-06-18 09:19:26 +02:00
Eitan Adler
810b5c8ab9 43048: add sanitizers, standards aliases and fix -flto 2018-06-18 08:45:09 +02:00
dana
ed2f4d6840 43043: Improve comm/sed completion 2018-06-17 20:38:15 -05:00
dana
0cac4b63e0 43024: Improve _man section-name matching 2018-06-15 22:03:30 -05:00
Matthew Martin
d5360e324c 42981: Add ed completer 2018-06-15 14:15:56 -05:00
dana
d1eb0f4ed1 42992: Fix minor escaping bug in _bash 2018-06-13 18:59:05 -05:00
dana
684db0f9fe 42983: Address misc. feedback re: _man 2018-06-11 16:52:38 -05:00
dana
c89d9cc820 42977: Complete options to major man variants, otherwise improve especially section matching 2018-06-10 22:13:48 +02:00
Eitan Adler
0a4eb2d85d 42968: add "-c" for _shutdown completion on FreeBSD 12-current 2018-06-09 21:26:44 +02:00
dana
b5b3dde0a0 42965: add full completion for bash and update shell list in _sh 2018-06-09 11:06:55 +02:00
dana
e60620bc2f 42918: fix file completion for jq 2018-06-09 10:05:07 +02:00
dana
9767ee8849 42918: adapt detection of GNU variant of ldd to work on Ubuntu 2018-06-09 10:00:50 +02:00
Doron Behar
880098352c 42947: new luarocks completion 2018-06-07 23:18:34 +02:00
dana
64ef1eddfd 42931: completion for several utilities especially for checksums across a variety of systems 2018-06-07 18:19:55 +02:00
Eitan Adler
f16c690bea 42935: FreeBSD does not support -v for arp 2018-06-07 17:42:50 +02:00
Oliver Kiddle
09b6959aa5 43943: update samba completion with long options 2018-06-07 17:30:57 +02:00
dana
32ac8c5bcb 42919: new shuf and uptime completions 2018-06-04 00:19:02 +02:00
dana
3585c28c36 42922: new tac completion 2018-06-04 00:12:41 +02:00
Oliver Kiddle
47f34eff93 42881: update options in ghostscript completion and query more matches directly from it 2018-06-04 00:07:23 +02:00
Oliver Kiddle
5e2d3d1e15 42806: fix shutdown completion where options were lost due to args= assignment where args+= was needed 2018-05-19 11:10:46 +02:00
Oliver Kiddle
25f6f5eebe 42803: handle Linux and the the BSDs in netstat completion 2018-05-19 11:06:52 +02:00
Peter Stephenson
fa441fa20e 42752: enhance git external alias completion
If alias expands to !cmd-name, complete as a normal command
line after cmd-name.
2018-05-08 17:13:12 +01:00
Eitan Adler
2d8574ef7d 42732: Add several more entries to ifconfig 2018-05-02 09:09:09 +02:00
Oliver Kiddle
64b60f6926 42743: update vorbis-tools completion and include vorbiscomment with the rest 2018-05-02 08:59:23 +02:00
Matthew Martin
11dbc95962 42730: Complete the options for rmdir 2018-04-29 23:54:40 +02:00
Matthew Martin
17af784c5d 42729: update df completion for [DFNO]BSD 2018-04-29 23:49:49 +02:00
Oliver Kiddle
ad9b140213 42676: deal with system specific arguments in dd completion 2018-04-29 23:32:10 +02:00
Oliver Kiddle
563a8d2853 42728: update options in libtiff tools completion and add handling for tiff2pdf 2018-04-29 23:29:40 +02:00
Oliver Kiddle
39f58eb318 42659: various completion option updates 2018-04-16 17:02:56 +02:00
Oliver Kiddle
b69a341619 42658: allow compact form of option arguments to diffstat 2018-04-16 16:53:47 +02:00
Matthew Martin
637f9809a7 42642 (tweaked for Solaris): OpenBSD chown does not support -f and dragonfly has -x 2018-04-16 16:39:21 +02:00
Daniel Hahler
5bd659352f 42631: _pgrep: pkill: fix completion of signals
This adds the signals after arguments are filtered according to
$optchars.
2018-04-13 11:44:37 +02:00
Oliver Kiddle
5bd63f4d69 c.f. 42499: tera torn: update twisted completion stub for new twist command 2018-04-08 10:51:35 +02:00
Mikael Magnusson
583419839f 42602: Update _gcc as of GCC 7.3.0 for generic options and x86 2018-04-07 14:08:26 +02:00
Jun-ichi Takimoto
4b13cda37b 42590: fix detection of OSTYPE in _fmt 2018-04-05 20:31:28 +09:00
Jun-ichi Takimoto
5dc36c40c3 42585: improve completion for libarchive-based tar
Offer all compressed archives if no compression flag is specified
because libarchive can automaticaly recoginize them.
cf. 42574 (Eitan Adler).
2018-04-05 20:27:39 +09:00
Oliver Kiddle
9004b59115 42584: complete options for ssh-keyscan and update options for ssh-copy-id 2018-04-05 11:32:57 +02:00
Oliver Kiddle
10fcc7eaaf 42583: new column completion 2018-04-05 11:30:10 +02:00
Oliver Kiddle
d4c19184fe 42582: updates to options in completions for OpenBSD 6.3 2018-04-05 11:29:07 +02:00
Jun-ichi Takimoto
35734810d1 42578: _shutdown: add support for macOS 2018-04-05 10:34:12 +09:00
Jun-ichi Takimoto
e9a76d3924 42577: fix macOS support in _strings 2018-04-05 10:27:45 +09:00
Oliver Kiddle
1bd2ecc17d 42572: various completion option updates 2018-03-31 10:12:59 +02:00
Oliver Kiddle
486297520f 42568: new shutdown completion 2018-03-30 16:23:59 +02:00
Oliver Kiddle
286b4c8b0c 42569: improve lsof completion after -i and -s options 2018-03-30 16:17:44 +02:00
Oliver Kiddle
c960cd3c2d 42567: new completion for xmlstarlet 2018-03-30 16:14:34 +02:00
Oliver Kiddle
20a92b857e 42570: new completion for drill and factor out DNS type completion 2018-03-30 16:12:35 +02:00
Oliver Kiddle
36e8471a2c 42566: new strings completion 2018-03-30 12:09:31 +02:00
Mikael Magnusson
1ee82c5903 42564: _adb: Various improvements
Show product as description by default
    Add zstyle for naming devices via serial number
    Add --user to uninstall
    and other improvements
2018-03-29 21:27:11 +02:00
Oliver Kiddle
de7c06a3df 42548: new pwgen completion 2018-03-28 10:32:11 +02:00
Oliver Kiddle
9881778d48 42550: new completion for ruby's gem 2018-03-28 09:11:35 +02:00
Oliver Kiddle
383077e0da 42520: don't use an empty but existing option cache in netcat completion 2018-03-24 15:16:07 +01:00
Oliver Kiddle
a2459bee79 42521 based on 42049 (SATOH Fumiyasu): fix finding of includes in make completion
make always includes relative to the current directory rather than
relative to the including Makefile.
2018-03-24 15:11:19 +01:00
Oliver Kiddle
4977ec1398 42491 based on 42000 (Andrei Shevchuk): factor ssh host completion for use for mosh and git 2018-03-24 00:09:12 +01:00
Ferenc-
c3133f5eb1 github #22: Add newer C++ standard options to gcc completion 2018-03-07 00:57:39 +01:00
Daniel Hahler
1142e2dedb 42364: _git: fix __git_ignore_line to ignore the current word
Before this patch "git branch -d master<tab>" would result in
"no matches found", while "master" itself should get completed here.

The "(bQ)" (added in 527badc23, via 38129?!) does not seem to be necessary
anymore: with files "f\[a-z\]o" and "foo", "git add f[a-z]o <tab>"
offers "f\[a-z\]o", but not "foo".
2018-02-22 23:41:13 +01:00
Daniel Hahler
2bf952b102 42324: _git: handle mutually exclusive options
Currently `git show --stat -p` is not considered a valid completion and
prevents further completions like `--no-abbrev`.

It is a valid use case however to use `--stat` with `-p` (and there is a
synonym `--patch-with-stat` for it even).

This patch changes `__git_setup_diff_options` to only handle mutually
exclusive arguments reported by Git (as a fatal error) in a special way.
2018-02-12 10:12:22 +01:00
Daniel Hahler
c18fe510f4 42327: _make: complete _files
The use case is completing files that are actual targets, generated
using $(wildcard …).

Q: Could this be made to only complete files if make targets and vars
are empty?
2018-02-11 20:09:30 +01:00
Daniel Shahaf
5677339062 unposted: _subversion: Support subcommands with hyphens in their names, such as 'shelf-list (shelves)' from upstream 1.10 development versions. 2018-02-08 15:12:59 +00:00
Christian Hesse
dd8e55c46b 42333: git 2.16.0 no longer accepts an empty string as a pathspec element so replace empty strings with a dot 2018-02-08 00:49:46 +01:00
Matthew Martin
0236d9c5f1 42330: ln -L and -P are POSIX, but not supported by Darwin or NetBSD 2018-02-08 00:37:26 +01:00
WGH
0c324124d0 42336: force single column output when getting filenames with adb ls command 2018-02-07 20:52:28 +01:00
Oliver Kiddle
ffacc95766 42343: complete --config-option to svn more than once 2018-02-07 20:47:30 +01:00
Daniel Hahler
2870302afa 42323: _git: move "local" statement out of loop
Fixup for 99cf61fd4.
2018-01-24 21:55:27 +01:00
Oliver Kiddle
47430bcd7c 42317: completion option updates for commands that have had recent updates 2018-01-23 11:03:00 +01:00
Matthew Martin
b5572f9037 42309: A few small updates for OpenBSD 2018-01-23 11:02:56 +01:00
Matthew Martin
ef0aae1c27 42242: add [DFNO]BSD to the mix in ldconfig completion 2018-01-10 23:39:58 +01:00
dana
0f0b602415 42231: new completion functions for simple utilities belonging to the 'Darwin' and 'Linux' groups. 2018-01-06 00:13:51 +01:00
Oliver Kiddle
0c5f851021 42230: update screen completion to 4.06.01 2018-01-05 17:27:28 +01:00
Oliver Kiddle
ef1f9e1978 42229: update completion of GNU programs for coreutils 8.29 / gawk 4.2.0 2018-01-05 17:17:47 +01:00
dana
ae059841b0 42223: new completions for sublime text and some basic Unix utilities 2018-01-05 15:29:17 +01:00
Oliver Kiddle
48f01128be 42221: update enscript completion for GNU enscript 1.6.6 2018-01-05 14:30:02 +01:00
dana
21a09a1418 42214: use less general names on new functions for completing file flags and modes 2018-01-04 11:50:50 +01:00
dana
1c4e7601c4 42210: factor out completion of file modes and flags and handle _comp_priv_prefix for chflags 2018-01-04 00:16:43 +01:00
dana
5f68531b5d 42209: take account of numeric options such as -4 instead of -t4 2018-01-04 00:05:59 +01:00
dana
9f8ed99146 42209: fix option descriptions for non-GNU variants of tr 2018-01-04 00:01:58 +01:00
Oliver Kiddle
f7a5211f38 42208: fix use of cache variables in yp completion 2018-01-03 18:39:55 +01:00
dana
d81bfa0141 42207: support g prefixes for GNU variants on systems like macOS+Homebrew 2018-01-03 17:27:23 +01:00
Eric Cook
99cf61fd42 42171: prevent parameters of various parameters from becoming global 2018-01-02 14:38:03 -05:00
Jun-ichi Takimoto
3c24adb2ed 42183: _objdump: support LLVM variant 2017-12-31 10:11:59 +09:00
Jun-ichi Takimoto
d303dfa7f5 42175 + 42177 + 42178: avoid localized output from external commands
_call_program and '_arguments --' will call _comp_locale before
calling external command for easier analysis of the output.
This is disabled by passing an option '-l'.
2017-12-28 11:35:34 +09:00