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

10 lines
197 B
Plaintext
Raw Normal View History

2022-09-29 22:29:13 +00:00
#alias sudo="/usr/bin/sudo "
2022-10-06 01:49:54 +00:00
alias _sudo="env sudo "
2022-09-29 22:29:13 +00:00
function sudo() {
local cli="$(command -v "${1}")"
[[ -x "$cli" ]] || cli="${1}"
/usr/bin/sudo --preserve-env=PATH -- "$cli" "${@:2}"
}