From a0cc55bb6f4fca71e8b3af38228413b9718b7cc7 Mon Sep 17 00:00:00 2001 From: Lockszmith <code@lksz.me> Date: Mon, 10 Oct 2022 18:42:53 -0400 Subject: [PATCH] Fixed sudo alias Passed SHRC_D to child sudo sessions, fixes when not using pqb specific prefix --- _home/dot_sz.shrc.d/23_sudo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_home/dot_sz.shrc.d/23_sudo b/_home/dot_sz.shrc.d/23_sudo index c48ebe9..f6a10e0 100644 --- a/_home/dot_sz.shrc.d/23_sudo +++ b/_home/dot_sz.shrc.d/23_sudo @@ -2,7 +2,7 @@ function sudo() { local cli="$(command -v "${1}")" [[ -x "$cli" ]] || cli="${1}" - /usr/bin/sudo --preserve-env=PATH -- "$cli" "${@:2}" + /usr/bin/sudo --preserve-env=PATH,SHRC_D -- "$cli" "${@:2}" }