diff --git a/_conda b/_conda index 93d75d9..36a7f48 100644 --- a/_conda +++ b/_conda @@ -180,7 +180,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' ')) + envs+=($( (test -n "$unnamed" && cat ${HOME:?}/.conda/environments.txt) | cut -f1 -d' ' | sed -e "s|^${HOME:?}/.conda/envs/||")) fi _describe $describe_opts -t envs 'conda environments' envs