Skip to content

fix(installation): don't assume that shell config file ends on newline#4873

Merged
nichmor merged 2 commits intoprefix-dev:mainfrom
MikkelSchubert:fix/missing-shell-config-newline
Dec 5, 2025
Merged

fix(installation): don't assume that shell config file ends on newline#4873
nichmor merged 2 commits intoprefix-dev:mainfrom
MikkelSchubert:fix/missing-shell-config-newline

Conversation

@MikkelSchubert
Copy link
Contributor

The update_shell function in install.sh currently assumes that the user's shell configuration file ends with a newline.

Mine didn't and so I ended up with the following in my .zshrc file:

fiexport PATH="/home/mischu/.pixi/bin:$PATH"

To avoid this, this patch simply appends a newline before writing the configuration line

Copy link
Contributor

@nichmor nichmor left a comment

Choose a reason for hiding this comment

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

thanks! looks good!

@lucascolley lucascolley added the bug Something isn't working label Nov 3, 2025
@lucascolley lucascolley changed the title fix: don't assume that shell config file ends on newline fix(installation): don't assume that shell config file ends on newline Nov 3, 2025
@lucascolley lucascolley added the installation The installation of pixi itself label Nov 3, 2025
Copy link
Contributor

@nichmor nichmor left a comment

Choose a reason for hiding this comment

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

I want to test it before merging it

@nichmor nichmor enabled auto-merge (squash) December 5, 2025 14:21
@nichmor nichmor merged commit 42f2fb9 into prefix-dev:main Dec 5, 2025
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working installation The installation of pixi itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants