Skip to content

Commit

Permalink
Merge pull request #37 from 3mb3dw0rk5/master
Browse files Browse the repository at this point in the history
Remove path prefix from environments in default location
  • Loading branch information
esc authored Mar 7, 2021
2 parents 2930677 + 23dc304 commit cf2046a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _conda
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf2046a

Please sign in to comment.