Apply suggestions from review

Use inherent style in if statements and add comments.

Co-authored-by: Emergency Self-Construct <esc@users.noreply.github.com>
This commit is contained in:
Daniel Guger
2024-04-15 15:15:26 +02:00
committed by GitHub
parent 5f108c6d34
commit 9180020084

3
_conda
View File

@@ -185,7 +185,8 @@ __conda_envs(){
conda_exec=$(which conda)
if test ${${conda_exec}#*"homebrew"} != ${conda_exec}; then
# Detect homebrew installations and set path accordingly.
if [[ ${${conda_exec}#*"homebrew"} != ${conda_exec} ]]; then
conda_path="/opt/homebrew/Caskroom/miniconda/base/envs"
else
conda_path="${${CONDA_EXE}%bin/conda}/envs"