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