Oliver Kiddle
4bea58d0c4
47919: use common function for completing BSD login classes
...
also update for options to env on FreeBSD and Dragonfly
2021-02-06 00:23:20 +01: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
dana
dd523255cc
45423: _su: Improve arg handling, shell look-ups
...
Differences from ML post:
* Properly fix escaping issue with $usr (needs unescaped first)
* Make $shell emptiness check easier to read (per feedback)
2020-02-14 09:42:12 -06:00
Oliver Kiddle
bce43df70d
38703: support su options on macOS
2016-06-18 00:08:16 +02:00
Oliver Kiddle
cf01ad96d4
38639: fix username completion after -, update options and get user shell with getent
2016-06-09 22:51:18 +02:00
Mikael Magnusson
242b419fbc
33485: fix a missing ;; case terminator
2014-10-24 08:56:31 +02:00
Oliver Kiddle
5e592fd9b0
33485: fixes for zstyle context handling
2014-10-21 20:53:51 +02:00
Bart Schaefer
434ff125f0
22110: more intelligent su completion
2006-01-16 16:32:43 +00:00
Sven Wischnowsky
45f9a36216
remove that -T option to compdef again and instead use comma-separated sub-contexts both for function and style lookup (16819)
2002-03-13 09:28:04 +00:00
Sven Wischnowsky
f56ba813bb
allow different sets of completion definitions selected with option -T to compdef; use this for parameter values and redirections (16755)
2002-03-04 08:53:41 +00:00
Sven Wischnowsky
f463b09b13
allow arguments to be given to functions used by compdef (actually, the strings are eval'uated, so this should be powerful enough) (16472)
2002-01-21 16:13:15 +00:00
Sven Wischnowsky
0bfbe0c704
moved from Completion/User/_su
2001-04-02 12:03:16 +00:00