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

fix: use autoguessing of the shell in the shell hook #811

Merged
merged 3 commits into from
Feb 15, 2024

Conversation

ruben-arts
Copy link
Contributor

fixes #810
This also fixes it for all the other shells as this only worked for bash and cmd.

@@ -387,6 +387,7 @@ This command prints the activation script of an environment.
pixi shell-hook
pixi shell-hook --shell bash
pixi shell-hook --shell zsh
pixi shell-hook -s powershell
Copy link
Contributor

Choose a reason for hiding this comment

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

wdyt about using long option here also?

Copy link
Member

Choose a reason for hiding this comment

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

I think it's fine to show that different flags work :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah normally I would use the full version but the repetition made me change it.

@wolfv wolfv merged commit 16f63bf into prefix-dev:main Feb 15, 2024
15 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.

pixi shell-hook outputs batch scripts when running in PowerShell
3 participants