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

4154 commits

Author SHA1 Message Date
Peter Stephenson
d4022e76c1 23519: Use tag remote-files for remote files 2018-06-29 09:48:44 +01: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
3c57f71668 43080: _sys_calls: analyze recent syscall.h properly 2018-06-25 11:12:24 +09: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
dana
951b945279 unposted: Fix mistyped variable name in _opkg 2018-06-24 20:19:38 -05:00
dana
acfa8c113b 43081: Add networksetup completion 2018-06-23 18:58:08 -05:00
dana
5019336110 43088: Fix wajig sub-command completion 2018-06-23 18:53:45 -05: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
dana
ea94f3bf14 43047: Make _bind_addresses always return local IPs 2018-06-18 17:52:36 -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
b6e4cc1a86 42992: Use _call_program to fetch argument possibilities 2018-06-13 18:57:23 -05:00
dana
2fb6533f04 unposted: Change 'Mac OS X' reference to 'macOS'
I've left other references (see _growisofs and _hdiutil) alone, since they all
appear in the context of legacy features.
2018-06-12 19:32:53 -05:00
dana
684db0f9fe 42983: Address misc. feedback re: _man 2018-06-11 16:52:38 -05:00
dana
6b4e78dce6 42984: Fix argument pass-through to compadd 2018-06-11 12:22:42 -05:00
dana
63e09b338b 42978: fix small but irritating bug in pbcopy completion 2018-06-10 22:18:05 +02: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
Eitan Adler
660e3f543e 42964: Update list of fbsd architectures 2018-06-09 10:46:28 +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
dbbe7794ef 42948: new opkg completion 2018-06-07 23:03:19 +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
Eitan Adler
780f169eff 42937: add -M and -m options 2018-06-07 17:39:02 +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
780c966972 42920: new dkms completion 2018-06-03 23:58:16 +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
Oliver Kiddle
afec5fb136 42784: complete -s and -x options to the functions builtin 2018-05-17 22:55:33 +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
942ac7e6e2 42740: Teach _systat about the 'zarc' screen 2018-05-02 09:12:58 +02: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
2cf01b9da8 42643, 42644: new cksum completion 2018-04-16 16:51:16 +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
pda
96f393f917 42613: typo fix in _ss 2018-04-09 23:22:25 -04: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
Matthew Martin
a2cb9bbed3 42604: new completions for OpenBSD's signify and vmctl 2018-04-07 11:06:24 +02:00
Klas Mellbourn
5e10acca98 github #24: Add completion script for Visual Studio Code 2018-04-07 10:57:59 +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
bfff8debf7 42591: complete *.changes and *.dsc files alongside *.deb 2018-04-05 13:00:14 +02: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
b90c59e9fc 42571: new completion for FreeBSD jail command 2018-03-31 10:04:56 +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
c2c9a16350 42549: also handle the yumdb command in yum completion 2018-03-28 10:30:05 +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
Oliver Kiddle
f1a52c23fa 42497 (tweaked c.f. 42498): make completion after apt install work on local .deb files 2018-03-23 09:57:39 +01:00
Jun-ichi Takimoto
fc37d15e3e 42191: new completion for otool (macOS) 2018-03-22 12:53:40 +09:00
Ferenc-
c3133f5eb1 github #22: Add newer C++ standard options to gcc completion 2018-03-07 00:57:39 +01:00
Matthijs Tijink
f5d0111e15 github #23: new kdeconnect-cli completion 2018-03-07 00:51:20 +01:00
Peter Stephenson
ba7de6d0d5 users/23169: only expand ~[...] under the same circumstances as other ~forms 2018-02-26 20:03:48 +00: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
Oliver Kiddle
aabf978fce 42299: correct optional argument 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
Peter Stephenson
b816291a17 42294: disable REPORTTIME in completion 2018-01-18 09:39:08 +00: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
c8e2f3c3d8 42222: _object_files: recognize .dylib (macOS) 2018-01-05 10:06:50 +09: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
Maciek Makowski
c789efbaf0 github #21: update nmcli completions to be compatible with recent version 1.8.4 2018-01-04 11:40:03 +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
Matthew Martin
dd824080ca 42117: use anonymous function rather than define one in user namespace 2018-01-03 17:11:00 +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
Daniel Shahaf
dd5ab15b5f 42186: _apt: Fix completion of target_release names, e.g., 'apt install zsh/<TAB>'.
When local-apt-repository is installed, 'apt-cache policy' contains
.
     100 /var/lib/dpkg/status
         release a=now
     500 file:/var/lib/local-apt-repository ./ Packages
         release o=local-apt-repository,c=
.
which was matched by the pattern being patched.
2017-12-30 06:15:22 +00: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
Jun-ichi Takimoto
24152f766f 42176: _tar: update long options 2017-12-27 09:44:53 +09:00
dana
349c95765a dana: various OpenSSH completion improvements 2017-12-22 19:58:24 +00:00
Daniel Shahaf
a254c1815a 42138: _git-revert: Complete recent commits first. 2017-12-20 04:13:39 +00:00
Jun-ichi Takimoto
972cf4197e * 42143: fix a pattern in _object_files 2017-12-20 00:49:26 +09:00
Peter Stephenson
a3d92298ff 42113: BSD complation updates.
Remove use of pkg_* for FreeBSD.

Add BSD architecture utilities.
2017-12-13 18:08:18 +00:00
Peter Stephenson
e2f793e7df 42037: COMP_POINT for bash completion was miscalculated. 2017-11-20 09:52:05 +00:00
Oliver Kiddle
09939216d4 42019: update options in git completion to 2.15
also improve format completion for git tag and for-each-ref
2017-11-13 21:47:29 +01:00
Oliver Kiddle
d0b2549ba8 gitlab #1: update options for sqlite 3.21.0 2017-11-13 21:26:37 +01:00
Malcolm Ramsay
d8e3218938 Specify system python in dnf completion
The python executable in the python_exec variable was the python[2|3]
executable found in $PATH. When the python[2|3] executable was not the
system installed version the completion command raised an `ImportError`
as the 'dnf' module was not found.

This commit just completely specifies the python version to be the
system version `/usr/bin/python[2|3]`, allowing completion within a
python dev environment.
2017-11-13 21:14:56 +01:00
Daniel Shahaf
7f619220bf unposted: _sshfs: Make the -o option repeatable, accept "--". 2017-11-04 17:31:18 +00:00
Daniel Shahaf
5498e0cb9e 41969: _sort: Clarify option description. 2017-11-03 20:40:05 +00:00
Oliver Kiddle
0ebf336489 41971: correctly break out of certain tag loops when there are matches 2017-11-02 21:36:55 +01:00
Oliver Kiddle
2273fe478a 41965: complete new functions -W and zmodload -s options 2017-10-31 00:55:02 +01:00
Oliver Kiddle
aaa001e534 41963: update completion for gnutls 3.6.1 2017-10-31 00:51:42 +01:00
Sebastian Gniazdowski
37c5e20a80 41960: add missing local declarations for MATCH, MBEGIN and MEND 2017-10-29 13:54:05 +01:00
Oliver Kiddle
08e865ed90 41961: new ansible completion 2017-10-29 13:45:41 +01:00
Oliver Kiddle
01523f4145 41958: update util-linux completions to 2.31; new hexdump completion 2017-10-29 13:42:53 +01:00
Oliver Kiddle
85e56b5a48 41957: update git completion for git 2.14.3 2017-10-29 00:07:22 +02:00
Oliver Kiddle
de425db94f 41927: complete "typeset -p"'s optional argument for multi-line output 2017-10-28 23:21:35 +02:00
Christian Brabandt
373538442b 41943: Completion: add --clean for vim
Vim since patchlevel 8.0.0716 includes the --clean argument for starting
in a clean mode (only loading defaults.vim and in non-cp mode).
2017-10-20 22:20:28 +02:00
Gautam
ab37774266 41907: further deborphan update 2017-10-16 09:49:16 +01:00
Gautam
82b275d53a 41904: new deborphan and updated xrandr completions 2017-10-16 09:46:14 +01:00
Daniel Shahaf
7c36add497 41833 + 41838: _jq: New completion. 2017-10-13 17:51:29 +00:00
Daniel Shahaf
57cfa8b160 41825/0002: _stat: Complete -x options to zsh/stat's 'zstat'. 2017-10-11 17:50:30 +00:00
Daniel Shahaf
c68cfb1c36 41825/0001: _stat: Only complete 'stat' if it's provided by the zsh/stat builtin. 2017-10-11 17:50:30 +00:00
Oliver Kiddle
61b544a068 41855: completion option updates for OpenBSD 6.2 and handle macOS in rm completion 2017-10-11 01:24:01 +02:00
Oliver Kiddle
a8c2b90810 41854: also complete options for ping on Solaris, Mac OS, NetBSD and OpenBSD and for ping6 2017-10-11 01:23:59 +02:00