Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
Mikael Magnusson: 47382: Completion for 47364
|
|
As per the completion-style-guide recommendations.
|
|
|
|
|
|
|
|
|
|
it for zstyle
|
|
* 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
|
|
_vcs_info_hooks as a top-level helper function.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Enable zparseopts to perform basic usage validation (aborting on an
unrecognised option-like parameter)
* Officially document the resolution of ambiguous option specs
|
|
_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
|
|
|
|
|
|
|
|
|
|
|
|
expansion flag
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
builtin.
|
|
a better choice than -P
|
|
|
|
parameter expansion flags
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|