Closed Ekkosun closed 1 year ago
Thank you very much. Here https://athenaos.org/en/support/troubleshooting/#tools added the details you reported in the issue. I'm not sure to add that code directly on .bashrc
because Athena has not Conda installed by default.
Thank you for your attention。
Athena OS version
v23.06.23
Which environment or technology are you using?
Kernel version
6.4.11-zen2-1-zen
Involved software
miniconda
Repro steps
For all version of miniconda:
wget -c https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
conda init bash
conda create -n test && conda activate test
Expected behavior
the prompt changes from
(base)
to(test)
Actual behavior
the prompt is still
(base)
Diagnostic logs
i find the reason why the prompt doesn't change is that the line in
.bashrc
export PROMPT_COMMAND='source ~/.bashrc no-repeat-flag'
conda adds the conda init lines in ~/.bashrc , but this command execute for every time a command is finished in bash. so the prompt doesn't change.The code is my solution to this issue