Also include the content of the default prefix dir without path

This commit is contained in:
Niels Mündler
2020-07-16 12:45:29 +02:00
parent 1a27527794
commit a19d4a4ef4
+1 -1
View File
@@ -128,7 +128,7 @@ local -A opt_args
__conda_envs(){ __conda_envs(){
local -a envs local -a envs
envs=($(echo base && cat $HOME/.conda/environments.txt | cut -f1 -d' ')) envs=($(echo base && ls -1 ${${CONDA_EXE}%bin/conda}/envs && cat ${HOME:?}/.conda/environments.txt | cut -f1 -d' '))
_describe -t envs 'conda environments' envs _describe -t envs 'conda environments' envs
} }