ohmybash / oh-my-bash

A delightful community-driven framework for managing your bash configuration, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
https://ohmybash.github.io
MIT License
5.86k stars 651 forks source link

Conda env name not showing #403

Closed shelfofclub closed 1 year ago

shelfofclub commented 1 year ago

I have set OMB_PROMPT_SHOW_PYTHON_VENV=true, but it doesn't show env name. version: fb0dfe4 theme: garo

If I run python_venv=asdf and _omb_prompt_get_python_venv, the return value is 1 and python_venv is empty.

akinomyoga commented 1 year ago

Thank you for the report. Could you paste the output of the following command?

$ declare -p CONDA_DEFAULT_ENV CONDA_SHLVL
shelfofclub commented 1 year ago

@akinomyoga

~ → declare -p CONDA_DEFAULT_ENV CONDA_SHLVL
declare -x CONDA_DEFAULT_ENV="base"
declare -x CONDA_SHLVL="1"
akinomyoga commented 1 year ago

Thanks! Hmm, this means that my naive guess was wrong. I'm now busy, so I'll later come back again and look into the code. Thank you!

akinomyoga commented 1 year ago

Thanks for the report! I have fixed it in commit 1fdb9d0. It was a mistake in 55a31c6 when I tried to incorporate the idea described in #373. Sorry for the inconvenience and thank you again for your report!

shelfofclub commented 1 year ago

Thank you! It works.

akinomyoga commented 1 year ago

Thanks! Closing.