fix sudo
This commit is contained in:
@@ -102,9 +102,10 @@ status is-interactive; and begin
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# PATH ordering: prefer Nix/system binaries over self-installed shims in ~/.local/bin
|
# PATH ordering on Linux: keep privileged wrapper binaries first (sudo, etc.)
|
||||||
if test (uname) = Linux
|
if test (uname) = Linux
|
||||||
fish_add_path -m /run/current-system/sw/bin
|
fish_add_path -m /run/wrappers/bin
|
||||||
|
fish_add_path -a -m /run/current-system/sw/bin
|
||||||
end
|
end
|
||||||
|
|
||||||
# Add user local bin to PATH, but keep it after system paths on Linux
|
# Add user local bin to PATH, but keep it after system paths on Linux
|
||||||
|
|||||||
Reference in New Issue
Block a user