From 951cf819a656ecc9c0111e5d33f0ffdf97c74b0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=BCndler?= Date: Thu, 2 Jul 2020 17:15:31 +0200 Subject: [PATCH] Improve conda activate 1) activate becomes fast by simply parsing a text file 2) activate is now also able to resolve environment without name (specifically those with prefix) --- _conda | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_conda b/_conda index e840581..16ba637 100644 --- a/_conda +++ b/_conda @@ -128,7 +128,7 @@ local -A opt_args __conda_envs(){ local -a envs - envs=($( conda info -e | sed "1,2d" | cut -f1 -d' ')) + envs=($( cat $HOME/.conda/environments.txt | cut -f1 -d' ')) _describe -t envs 'conda environments' envs }