1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-22 03:40:47 +02:00
Commit Graph

29 Commits

Author SHA1 Message Date
Stephane Chazelas
58852b3246 Protect another : from history modifier expansion 2023-06-06 09:24:31 +01:00
Oliver Kiddle
6e10067ffd 49158: remove superfluous function definitions 2021-07-11 00:32:34 +02:00
Oliver Kiddle
35f9585cd1 49156: make wider use of the convention of square brackets for defaults 2021-07-10 23:44:58 +02:00
Oliver Kiddle
e6fdd35a83 49150: consistently use singular form for headings on completion match groups 2021-07-09 00:23:52 +02:00
Oliver Kiddle
d7c8d6826d 48230, 48233 (Jun T): completion of dtrace probes and runtime options 2021-03-28 10:38:13 +02: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
Oliver Kiddle
d2289b42a7 44895: complete options for state change notifications and other improvements 2019-11-06 21:32:25 +01: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
50d905cc7a unposted: fix typo in svccfg completion function call 2018-08-28 17:29:13 +02:00
Oliver Kiddle
25f6f5eebe 42803: handle Linux and the the BSDs in netstat completion 2018-05-19 11:06:52 +02:00
Eric Cook
99cf61fd42 42171: prevent parameters of various parameters from becoming global 2018-01-02 14:38:03 -05:00
Oliver Kiddle
b1a1a34250 41556: complete BPF (libpcap) filters 2017-08-16 23:47:55 +02:00
Oliver Kiddle
78afb218b0 40965: fix for missing local declarations of expl 2017-04-26 16:32:10 +02:00
Daniel Shahaf
1955cceec7 40011: Make $_comp_priv_prefix only declared when required, and use that to have chgrp offer all groups under doas, ssh, etc as well. 2016-11-28 07:16:39 +00:00
Oliver Kiddle
370b278565 39890: typo corrections in completion functions 2016-11-09 16:55:14 +01:00
Oliver Kiddle
01f9e54c57 39464: fix where lack of $state check caused unwanted filename completion for fmadm 2016-09-30 09:56:19 +02:00
Oliver Kiddle
b870ff85a0 39333: include name of command used to gain priviliges in context for command and gain-priviliges styles 2016-09-16 00:05:10 +02:00
Oliver Kiddle
8011fe8a58 39261 (tweaked cf. Daniel: 39275): don't unconditionally elevate privileges with sudo in completion functions
A new gain-privileges style enables it and a _comp_priv_prefix array
added for tracking how to match privileges for the current command
2016-09-11 13:49:22 +02:00
Oliver Kiddle
4200466217 39071: update completion functions for changes in Solaris 11.3 2016-08-19 19:06:37 +02:00
Oliver Kiddle
ab7ec8d985 35011: update completions for some common Unix commands,
in particular improving FreeBSD support
2015-05-03 16:53:57 +02:00
Oliver Kiddle
13fc579343 33467: correct return status on functions and numerous other minor fixes 2014-10-14 23:04:45 +02:00
Peter Stephenson
cc6e9db29d 33047: use git to simplify massively source distribution file selection 2014-08-23 21:01:58 +01:00
Danek Duvall
ef2eaf1f78 32261: completion updates for Solaris 11, Update 1 2014-01-02 22:26:04 +00:00
Peter Stephenson
b2722856e2 Danek: 30562: Solaris completion updates 2012-07-08 17:54:01 +00:00
Peter Stephenson
71052cb69c Danek (plus .distfiles): 30520: updated Solaris 11 copmletion 2012-06-21 08:50:14 +00:00
Doug Kearns
a54fdc70be unposted: fix incorrectly capitalized completion descriptions 2010-06-06 13:44:11 +00:00
Peter Stephenson
4ae72f2255 Danek Duvall: 26571: Additions for Solaris 2009-02-14 18:11:44 +00:00
Peter Stephenson
b2e70921b0 25435: Baptiste Daroussin <baptiste.daroussin@gmail.com>:
new and improved BSD completions
unposted: fix Solaris completion .distfiles
2008-08-12 10:37:30 +00:00
Peter Stephenson
5b29fedad8 25324: Danek Duvall: some Solaris and more general completions 2008-07-21 19:15:22 +00:00