mirror of
https://github.com/conda-incubator/conda-zsh-completion.git
synced 2026-03-04 14:24:59 +08:00
Merge pull request #37 from 3mb3dw0rk5/master
Remove path prefix from environments in default location
This commit is contained in:
2
_conda
2
_conda
@@ -180,7 +180,7 @@ __conda_envs(){
|
|||||||
|
|
||||||
# unmaned envs (if show-unammed).
|
# unmaned envs (if show-unammed).
|
||||||
if test -n "$unnamed"; then
|
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
|
fi
|
||||||
|
|
||||||
_describe $describe_opts -t envs 'conda environments' envs
|
_describe $describe_opts -t envs 'conda environments' envs
|
||||||
|
|||||||
Reference in New Issue
Block a user