dotfiles.2022/_home/dot_sz.shrc.d/23_sudo

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}"
}