aiidateam / aiida-project

AiiDA project manager
Other
3 stars 8 forks source link

🐛 `conda initialize` breaks `cda` command #13

Open mbercx opened 1 year ago

mbercx commented 1 year ago

It seems that initializing conda after install conda/mamba breaks the cda function set up in your e.g. .zshrc file:

# Created by `aiida-project init` on 05/09/23 11:05
export $(grep -v '^#' /Users/mbercx/.aiida_project.env | xargs)
cda () {
# source $aiida_venv_dir/$1/bin/activate  # commented out by conda initialize
  cd $aiida_project_dir/$1
}

We should look into what exactly conda initialize looks for, and try to avoid conflicts..