Skip to content

Commit

Permalink
Apply suggestions from review
Browse files Browse the repository at this point in the history
Use inherent style in if statements and add comments.

Co-authored-by: Emergency Self-Construct <esc@users.noreply.github.com>
  • Loading branch information
guger and esc authored Apr 15, 2024
1 parent 5f108c6 commit 9180020
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _conda
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9180020

Please sign in to comment.