summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_sudo
AgeCommit message (Collapse)AuthorFilesLines
2023-11-0252260: handle variable assignments before the command in sudo completionOliver Kiddle1-15/+41
2021-08-2949319: completion options updateOliver Kiddle1-0/+3
2020-03-1145424: completion: Add **/sbin to PATH when completing commands like sudodana1-5/+9
* 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
2019-09-2744781: add completion of SELinux contextsOliver Kiddle1-2/+2
2018-01-2342317: completion option updates for commands that have had recent updatesOliver Kiddle1-1/+2
2017-08-0541492: update some options in completionsOliver Kiddle1-0/+1
2016-11-2840011: Make $_comp_priv_prefix only declared when required, and use that to ↵Daniel Shahaf1-0/+1
have chgrp offer all groups under doas, ssh, etc as well.
2016-09-1639333: include name of command used to gain priviliges in context for ↵Oliver Kiddle1-2/+3
command and gain-priviliges styles
2016-09-1139261 (tweaked cf. Daniel: 39275): don't unconditionally elevate privileges ↵Oliver Kiddle1-1/+1
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
2015-03-0934693: sudo completion: Don't false positive 'sudo -e' detectionDaniel Shahaf1-1/+8
2014-12-1333958: update sudo completion for newer optionsOliver Kiddle1-26/+32
2012-02-1430198: fix environ style lookup to be done in conventional mannerOliver Kiddle1-1/+1
2010-03-15Alexey: 27789: use _arguments in _sudoPeter Stephenson1-14/+11
2009-05-08update _sudoPeter Stephenson1-18/+37
2008-10-1025029: : "environ" style to allow a different search path when completingBart Schaefer1-0/+7
as a different user.
2001-04-02moved from Completion/User/_sudoSven Wischnowsky1-0/+19