Skip to content

ENH: add ctrlenv-shell and document it#340

Open
ZLLentz wants to merge 2 commits into
masterfrom
zlentz/enh_ctrlenv_shell
Open

ENH: add ctrlenv-shell and document it#340
ZLLentz wants to merge 2 commits into
masterfrom
zlentz/enh_ctrlenv_shell

Conversation

@ZLLentz

@ZLLentz ZLLentz commented Jul 7, 2026

Copy link
Copy Markdown
Member

Description

Add one more ctrlenv helper function: ctrlenv-shell

This activates a centrally installed pixi environment in a exitable/deactivatable subshell
Unlike ctrlenv-activate, which cannot be deactivated, this can be deactivated.
Unlike ctrlenv-activate, which is safe to include in a script, this cannot be included in a script.

The behavior is extremely similar to the pixi shell function, but implementing it this way means the user isn't required to have pixi on their path to use ctrlenv-shell.

I've also fixed some typos in the script docstring.

Motivation and Context

@aberges-SLAC requested a tool that would allow him to deactivate the pixi environments, as we used to be able to do with conda. This should satisfy those requirements.

How Has This Been Tested?

Interactively only.

Where Has This Been Documented?

In comments and the README.

@ZLLentz ZLLentz requested a review from a team as a code owner July 7, 2026 23:54
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.

1 participant