From e9dbe2ffc430e9f05500f11484e54ba8b210fbc5 Mon Sep 17 00:00:00 2001 From: Johannes Mueller Date: Mon, 4 Mar 2024 17:19:05 +0100 Subject: [PATCH] Fix completion of dir local prefixed environments Fixes #54 by replacing the current directory path in the enviromnent path with '.' --- _conda | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_conda b/_conda index 24f463d..8b98ed1 100644 --- a/_conda +++ b/_conda @@ -195,7 +195,7 @@ __conda_envs(){ # unmaned envs (if show-unammed). if test -n "$unnamed"; then - envs+=($( (test -n "$unnamed" && cat ${HOME:?}/.conda/environments.txt) | cut -f1 -d' ' | sed -e "s|^$localenvspath/||")) + envs+=($( (test -n "$unnamed" && cat ${HOME:?}/.conda/environments.txt) | cut -f1 -d' ' | sed -e "s|^${PWD}|.|" | sed -e "s|^$localenvspath/||")) fi _describe $describe_opts -t envs 'conda environments' envs