conda-forge / conda-forge/miniforge

accidentally not enabling `conda init` on installation

Open
#370 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Shell
Stars
10.2k
Forks
530
PR merge metrics
No merged PRs in 30d

Description

### Comment:

mamba is awesome. thank you for this great software.

I just installed from mambaforge as per:
https://github.com/conda-forge/miniforge#mambaforge

and accidentally hit enter while waiting for the installation such that it "no" before i realised what happened. i wanted to hit "yes".

![image](https://user-images.githubusercontent.com/21370980/197220738-240000c3-25ae-415d-9b47-0baa977e90c8.png)

I then spent the next 20mins trying to figure out what to put in the `.bashrc` file to allow for the `conda init`.
Didn't get anywhere so in the end deleted my wsl distro and started again from scratch. the whole experience was pretty annoying.

Suggestions:

1. don't default to "no" in the CLI. default to nothing and require the user to choose. give guidance as required.
2. in the docs tell the user what to add to the `.bashrc` file to reproduce what hitting "yes" does, i.e. `` is path to mambaforge root installation
```
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/mambaforge/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/mambaforge/etc/profile.d/conda.sh" ]; then
. "/mambaforge/etc/profile.d/conda.sh"
else
export PATH="/mambaforge/bin:$PATH"
fi
fi
unset __conda_setup

if [ -f "/mambaforge/etc/profile.d/mamba.sh" ]; then
. "/mambaforge/etc/profile.d/mamba.sh"
fi
# <<< conda initialize <<<
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.