Skip to content

bun re-adds itself to .zshrc every update #7641

@mrdomino

Description

@mrdomino

What version of Bun is running?

1.0.16+800fb1290

What platform is your computer?

Darwin 23.1.0 arm64 arm

What steps can reproduce the bug?

bun --upgrade, then cat ~/.zshrc.

What is the expected behavior?

My config should be unchanged. bun should've modified it when it was first installed, and now that it's upgrading, it should assume that I have preserved it.

If it wants to be sure that I have not made a mistake, it can gate its modifications behind [[ -n "$BUN_INSTALL" ]] and [[ -x $(which bun) ]].

What do you see instead?

My config is edited unconditionally.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueSomething that would be good for new contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions