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
co-authored by Emergency Self-Construct
parent 5f108c6d34
commit 9180020084
+2 -1
View File
@@ -185,7 +185,8 @@ __conda_envs(){
conda_exec=$(which conda) 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" conda_path="/opt/homebrew/Caskroom/miniconda/base/envs"
else else
conda_path="${${CONDA_EXE}%bin/conda}/envs" conda_path="${${CONDA_EXE}%bin/conda}/envs"