mirror of
https://github.com/conda-incubator/conda-zsh-completion.git
synced 2026-03-04 06:14:59 +08:00
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:
3
_conda
3
_conda
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user