mamba icon indicating copy to clipboard operation
mamba copied to clipboard

Empty shell name in xonsh

Open anki-code opened this issue 1 year ago • 0 comments

Troubleshooting docs

  • [X] My problem is not solved in the Troubleshooting docs

Anaconda default channels

  • [X] I do NOT use the Anaconda default channels (pkgs/* etc.)

How did you install Mamba?

Micromamba

Search tried in issue tracker

xonsh

Latest version of Mamba

  • [X] My problem is not solved with the latest version

Tried in Conda?

I have this problem with Conda as well, without using Mamba

Describe your issue

xonsh

which micromamba
# /opt/homebrew/bin/micromamba
micromamba info
# micromamba version : 1.5.6

micromamba create --prefix /tmp/.env python=3.12 ujson
micromamba activate /tmp/.env
# ...
# To initialize the current  shell, run:    <--- Here we see empty shell. Exp: `xonsh shell`.
#    $ eval "$(micromamba shell hook --shell )"  <--- Here we see empty shell. Exp: `--shell xonsh`.
# ...

Also instead of eval ... this should be:

__xonsh__.execer.exec($(micromamba shell hook --shell xonsh))

mamba info / micromamba info

No response

Logs

No response

environment.yml

No response

~/.condarc

No response

anki-code avatar Apr 06 '24 22:04 anki-code