summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_su
AgeCommit message (Collapse)AuthorFilesLines
2021-02-0647919: use common function for completing BSD login classesOliver Kiddle1-1/+1
also update for options to env on FreeBSD and Dragonfly
2020-03-1145424: completion: Add **/sbin to PATH when completing commands like sudodana1-0/+6
* 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-02-1445423: _su: Improve arg handling, shell look-upsdana1-12/+33
Differences from ML post: * Properly fix escaping issue with $usr (needs unescaped first) * Make $shell emptiness check easier to read (per feedback)
2016-06-1838703: support su options on macOSOliver Kiddle1-1/+1
2016-06-0938639: fix username completion after -, update options and get user shell ↵Oliver Kiddle1-60/+67
with getent
2014-10-2433485: fix a missing ;; case terminatorMikael Magnusson1-0/+1
2014-10-2133485: fixes for zstyle context handlingOliver Kiddle1-5/+15
2006-01-1622110: more intelligent su completionBart Schaefer1-12/+61
2002-03-13remove that -T option to compdef again and instead use comma-separated ↵Sven Wischnowsky1-1/+1
sub-contexts both for function and style lookup (16819)
2002-03-04allow different sets of completion definitions selected with option -T to ↵Sven Wischnowsky1-1/+1
compdef; use this for parameter values and redirections (16755)
2002-01-21allow arguments to be given to functions used by compdef (actually, the ↵Sven Wischnowsky1-4/+2
strings are eval'uated, so this should be powerful enough) (16472)
2001-04-02moved from Completion/User/_suSven Wischnowsky1-0/+22