Skip to content

Commit

Permalink
fix: silence file not found
Browse files Browse the repository at this point in the history
  • Loading branch information
jnooree committed Mar 12, 2024
1 parent 2b08e3e commit fb6589f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions _conda
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,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|^${PWD}|.|" | sed -e "s|^$localenvspath/||"))
envs+=($( (cat ${HOME:?}/.conda/environments.txt) 2>/dev/null | cut -f1 -d' ' | sed -e "s|^${PWD}|.|" | sed -e "s|^$localenvspath/||"))
fi

_describe $describe_opts -t envs 'conda environments' envs
Expand Down Expand Up @@ -746,4 +746,3 @@ case $state in
esac
;;
esac

0 comments on commit fb6589f

Please sign in to comment.