Skip to content

Commit

Permalink
fix(sudo): use $1 (sudo) as $root_command
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Aug 12, 2023
1 parent 1d9e19c commit 329ca0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/sudo
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ _comp_cmd_sudo()
for ((i = 1; i <= cword; i++)); do
if [[ ${words[i]} != -* ]]; then
local PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
local root_command=${words[i]}
local root_command=$1
_comp_command_offset $i
return
fi
Expand Down

0 comments on commit 329ca0e

Please sign in to comment.