Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions crates/vite_global_cli/src/commands/env/doctor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,15 +457,9 @@ fn check_profile_files(vite_plus_home: &str) -> Option<String> {
search_strings.push(format!("{home_dir}{suffix}{env_suffix}"));
}

#[cfg(target_os = "macos")]
let profile_files: &[&str] = &[".zshenv", ".profile"];

#[cfg(target_os = "linux")]
let profile_files: &[&str] = &[".profile"];

// Fallback for other Unix platforms
#[cfg(not(any(target_os = "macos", target_os = "linux")))]
let profile_files: &[&str] = &[".profile"];
// Check all profile files the install script may write to.
// This matches install.sh and implode.rs for consistency.
let profile_files: &[&str] = &[".zshenv", ".zshrc", ".bash_profile", ".bashrc", ".profile"];

for file in profile_files {
let full_path = format!("{home_dir}/{file}");
Expand Down