9 lines
173 B
Plaintext
9 lines
173 B
Plaintext
|
#alias sudo="/usr/bin/sudo "
|
||
|
function sudo() {
|
||
|
local cli="$(command -v "${1}")"
|
||
|
[[ -x "$cli" ]] || cli="${1}"
|
||
|
/usr/bin/sudo --preserve-env=PATH -- "$cli" "${@:2}"
|
||
|
}
|
||
|
|
||
|
|