-
Notifications
You must be signed in to change notification settings - Fork 573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix shell-integration-features being ignored with manual shell integration #5048
base: main
Are you sure you want to change the base?
Conversation
fcdae70
to
f0a83f8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that the previous behavior was intentional: when shell integration is disabled, we didn't want to add anything to the shell environment.
I apologize for not linking the issue in the PR description. This PR is actually implementing the solution proposed by @mitchellh in #5046, where he stated:
I'll update the PR description for better tracking. |
Got it. I think that makes sense. If someone doesn't want (automatic) shell integration and doesn't want the environment variables, they can still use:
I think the config documentation for
... which reads more ambiguously now that |
Thanks for the feedback! I've updated the documentation for Please let me know if the updated documentation looks good to you. |
874621d
to
4c3e63f
Compare
4c3e63f
to
3068b94
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple more suggestions, but looks good to me overall!
3068b94
to
f1d792c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small but important change and it looks good. Thank you!
f1d792c
to
491af71
Compare
Descriptions
The code was short-circuiting the shell integration setup when
shell-integration = none
, which prevented the feature environment variables from being set. These environment variables are needed even for manual shell integration to work properly.Changes
Extracted feature environment variables setup into a separate
setup_features
functionModified the shell integration initialization to ensure features are set up even when
shell-integration = none
Fixes #5046