Skip to content

Conversation

@kdm9
Copy link
Collaborator

@kdm9 kdm9 commented Dec 23, 2022

Most people have conda add the current env name to PS1. This breaks the parsing of PS1, and in particular prevents bash_kernel doing echo $? to find if the previous command succeeded.

This change makes the PS1 expect string a regex that allows for the (envname) which conda adds.

Making this in a PR so @takluyver has a chance to review/veto it before it it hits main.

Dear users: if you want to test this now, please install from my dev branch that contains this and the other concurrent PR:

pip uninstall bash_kernel
pip install git+https://github.com/takluyver/bash_kernel.git@kdm9dev

Most people have conda add the current env name to PS1. This breaks the
parsing of PS1, and in particular prevents bash_kernel doing `echo $?`
to find if the previous command succeeded.

This change makes the PS1 expect string a regex that allows for the
`(envname) ` which conda adds.
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.

2 participants