From e9f7bf4cb15fd45b76d5439e378ba3399d7d327a Mon Sep 17 00:00:00 2001 From: Nada Amin Date: Sat, 14 Nov 2020 01:41:20 -0500 Subject: [PATCH] how to call sudo with changed path --- docs/topic/installer-actions.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/topic/installer-actions.rst b/docs/topic/installer-actions.rst index e655f66..b57ae0e 100644 --- a/docs/topic/installer-actions.rst +++ b/docs/topic/installer-actions.rst @@ -49,9 +49,9 @@ This should let you run various ``conda`` and ``pip`` commands. If you run into .. code-block:: bash - sudo PATH=${PATH} + sudo env PATH=${PATH} -By default, ``sudo`` does not respect any custom environments you have activated. The ``PATH=${PATH}`` +By default, ``sudo`` does not respect any custom environments you have activated. The ``env PATH=${PATH}`` 'fixes' that. .. note::