mamba-org / mamba

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

[Q/Bug] How do I install the shell init changes to a custom file? #3237

Closed NightMachinery closed 5 months ago

NightMachinery commented 5 months ago

I need to add the config file to a custom dotfile, as the standard ones will be overwritten by my provisioning system.

I thought --rc-file might do this, but it doesn't:

micromamba shell init --shell zsh --rc-file ~/.privateShell
AntoinePrv commented 5 months ago

You can simply add eval "$(micromamba shell hook --shell zsh)" to your file, replacing zsh with the correct shell you are using.