Closed tianlongJ closed 3 weeks ago
Since you closed the issue, I imagine you have found the answer.
For anyone else:
https://gerardog.github.io/gsudo/docs/gsudo-vs-sudo#what-if-i-install-both
With the release of gsudo v2.5.0, a new configuration setting called PathPrecedence has been added. When set to true, it ensures gsudo appears first in the PATH variable, making the sudo keyword start gsudo instead of Microsoft's sudo. To activate, call 'gsudo config PathPrecedence true' and restart all consoles to apply the change. Setting it back to false will revert to the normal behavior.
Sorry to bother you, I tried the command "gsudo config PathPrecedence true" but it had no effect
Since you closed the issue, I imagine you have found the answer. For anyone else: https://gerardog.github.io/gsudo/docs/gsudo-vs-sudo#what-if-i-install-both With the release of gsudo v2.5.0, a new configuration setting called PathPrecedence has been added. When set to true, it ensures gsudo appears first in the PATH variable, making the sudo keyword start gsudo instead of Microsoft's sudo. To activate, call 'gsudo config PathPrecedence true' and restart all consoles to apply the change. Setting it back to false will revert to the normal behavior.
Sorry to bother you, I tried the command "gsudo config PathPrecedence true" but it had no effect
I solved this problem because I installed it using scoop, and the sudo command address was not in the installation directory, but in the shims directory defined by scoop
Since you closed the issue, I imagine you have found the answer.
For anyone else:
https://gerardog.github.io/gsudo/docs/gsudo-vs-sudo#what-if-i-install-both
With the release of gsudo v2.5.0, a new configuration setting called PathPrecedence has been added. When set to true, it ensures gsudo appears first in the PATH variable, making the sudo keyword start gsudo instead of Microsoft's sudo. To activate, call 'gsudo config PathPrecedence true' and restart all consoles to apply the change. Setting it back to false will revert to the normal behavior.