mamba-org / mamba

The Fast Cross-Platform Package Manager
https://mamba.readthedocs.io
BSD 3-Clause "New" or "Revised" License
6.57k stars 343 forks source link

Empty shell name in xonsh #3265

Open anki-code opened 3 months ago

anki-code commented 3 months ago

Troubleshooting docs

Anaconda default channels

How did you install Mamba?

Micromamba

Search tried in issue tracker

xonsh

Latest version of Mamba

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