Skip to content

fix(env): vp env doctor misses most shell profiles when checking IDE integration #881

Description

@MahmoodKhalil57

Description

The install script (install.sh) writes the env sourcing line to multiple shell profiles:

  • zsh: .zshenv + .zshrc
  • bash: .bash_profile + .bashrc + .profile

But vp env doctor's check_profile_files only checks:

  • macOS: .zshenv, .profile
  • Linux: .profile only

So on Linux with zsh (env in .zshrc) or bash (env in .bashrc), the doctor reports IDE integration is not set up and shows unnecessary setup guidance — even though everything is correctly configured.

Expected behavior

check_profile_files should check all profiles the install script may have written to: .zshenv, .zshrc, .bash_profile, .bashrc, .profile. This also matches the set that vp implode already cleans up.

Location

crates/vite_global_cli/src/commands/env/doctor.rs:460-467

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions