Skip to content

fix(env): check all shell profiles in vp env doctor#967

Closed
zerone0x wants to merge 1 commit intovoidzero-dev:mainfrom
zerone0x:fix/env-doctor-check-all-shell-profiles
Closed

fix(env): check all shell profiles in vp env doctor#967
zerone0x wants to merge 1 commit intovoidzero-dev:mainfrom
zerone0x:fix/env-doctor-check-all-shell-profiles

Conversation

@zerone0x
Copy link
Contributor

Summary

  • check_profile_files only checked .zshenv + .profile on macOS and .profile on Linux
  • But install.sh writes to all of: .zshenv, .zshrc, .bash_profile, .bashrc, .profile
  • This caused vp env doctor to falsely report missing IDE integration on Linux with zsh (env in .zshrc) or bash (env in .bashrc)
  • Unified the profile list to match install.sh and implode.rs, removing the platform-specific #[cfg] branches

Test plan

  • vp env doctor on Linux with env sourced from .bashrc no longer shows false warning
  • vp env doctor on macOS with env sourced from .zshrc no longer shows false warning
  • vp env doctor still detects when no profile has the env sourcing line

Closes #881

🤖 Generated with Claude Code

`check_profile_files` only checked `.zshenv` + `.profile` on macOS and
`.profile` on Linux, but the install script writes to `.zshenv`, `.zshrc`,
`.bash_profile`, `.bashrc`, and `.profile`. This caused doctor to report
missing IDE integration even when everything was correctly configured.

Unify the profile list to match install.sh and implode.rs.

Closes voidzero-dev#881

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@netlify
Copy link

netlify bot commented Mar 16, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit f18c24e
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69b80b9c8c95260008c348fa

@fengmk2
Copy link
Member

fengmk2 commented Mar 16, 2026

There is already a similar PR fixing this issue #961

@zerone0x zerone0x closed this Mar 16, 2026
@zerone0x zerone0x deleted the fix/env-doctor-check-all-shell-profiles branch March 16, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants