Enhance installation experience with improved PATH handling#61
Merged
shubham-pampattiwar merged 1 commit intoAug 20, 2025
Merged
Conversation
- Add clear PATH configuration status checking and feedback - Provide immediate export command for current terminal session - Improve shell config detection to ignore commented lines - Add installation verification that tests kubectl plugin accessibility - Enhance user guidance with structured instructions for current and future sessions - Update README with clearer PATH setup guidance Fixes the common issue where users run 'make install' but kubectl oadp doesn't work immediately due to PATH not being updated in current session. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR improves the user experience during installation by providing clearer guidance and better PATH management to help users get
kubectl oadpworking immediately after installation.Background
Currently, users may experience confusion after running
make installwhenkubectl oadpdoesn't work immediately. This typically happens when~/.local/binisn't in their current terminal session's PATH, even if it's configured in their shell profile.Improvements
1. Enhanced PATH Detection & Feedback
2. Current Session Support
export PATH=...command for immediate usekubectl oadpright away without restarting their terminal3. Improved Shell Configuration Detection
^[[:space:]]*export[[:space:]]*PATH.*\.local/binfor more accurate detection4. Installation Verification
kubectl oadpis accessible after installation5. Clearer User Guidance
6. Updated Documentation
Example Output
The new installation experience provides clear, actionable guidance:
This change helps ensure users can successfully use the CLI immediately after installation while providing clear guidance for both immediate and future use.
🤖 Generated with Claude Code