Skip to content

Commit

Permalink
Merge pull request #55 from johannes-mueller/fix/complete-activate-di…
Browse files Browse the repository at this point in the history
…rlocal-prefixed-env

Fix completion of dir local prefixed environments
  • Loading branch information
esc committed Mar 5, 2024
2 parents 4fce479 + e9dbe2f commit 1b1edb2
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 @@ -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
Expand Down

0 comments on commit 1b1edb2

Please sign in to comment.