try to fix nix-darwin breaking starship prompt on rebuild

This commit is contained in:
Noah Masur
2025-12-25 17:22:12 -07:00
parent 44c4034236
commit a6915a6d2d

View File

@@ -23,5 +23,19 @@ in
# Speeds up fish launch time on macOS # Speeds up fish launch time on macOS
programs.fish.useBabelfish = true; programs.fish.useBabelfish = true;
programs.fish.shellInit = ''
set -g __nixos_path_original $PATH
function __nixos_path_fix -d "fix PATH value"
set -l result (string split ":" $__nixos_path_original)
for elt in $PATH
if not contains -- $elt $result
set -a result $elt
end
end
set -g PATH $result
end
__nixos_path_fix
'';
}; };
} }