Skip to content

Support adding condabin/ to PATH #960

@jaimergp

Description

@jaimergp

Checklist

  • I added a descriptive title
  • I searched open requests and couldn't find a duplicate

What is the idea?

constructors supports adding bin (on Windows, Scripts) to PATH, but it's discouraged because it pollutes the executable space.

We should provide an option where the installer only offers to add condabin to PATH, so conda (and mamba) can be in PATH without shell initialization.

Why is this needed?

This Miniforge issue provides a good overview of the rationale: conda-forge/miniforge#453

What should happen?

If "Add condabin to PATH" is enabled in the installer and selected by the user, then $INSTDIR/condabin would be in PATH after the installation.

Additional Context

This could also be tackled in conda as part of conda init, but I think this is cleaner? Shell initialization does not necessarily need PATH entries, and viceversa. Should it be a separate conda subcommand? As a plugin? Part of conda-standalone? Open for feedback though.

Metadata

Metadata

Assignees

Labels

locked[bot] locked due to inactivitytype::featurerequest for a new feature or capability

Type

No type
No fields configured for issues without a type.

Projects

Status

Done 💪🏾

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions