Skip to content
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

feat: hide the sourcing of the activation script when starting shell #2319

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

wolfv
Copy link
Member

@wolfv wolfv commented Oct 18, 2024

The pixi shell prints a relatively weird looking activation script (sourcing a temporary file etc.).

This way we wait until we read === DONE === on the shell, and only then start streaming in- and output.

This might break when there is some other stuff happening (such as oh-my-zsh asking if one wants to update), as our part runs after the .bashrc or .zshrc script has ran.
Not sure if we should try to add a timeout as well so that we print stuff if e.g. 3 seconds are over and == DONE == hasn't appeared.

Copy link
Contributor

@baszalmstra baszalmstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@ruben-arts ruben-arts merged commit fb85c0b into prefix-dev:main Oct 25, 2024
17 checks passed
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.

3 participants