diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-09-20 08:29:56 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-09-20 08:29:56 -0400 |
commit | fa7dc2defb4acd3a808bf8bf787518d2d2d522db (patch) | |
tree | 687904e05c4e81ae8b0e646d816ae2723a293224 | |
parent | c8c0802c98db5e3d6de6b79887133e0d15567fd8 (diff) | |
download | stasis-fa7dc2defb4acd3a808bf8bf787518d2d2d522db.tar.gz |
Export all variables when sourcing conda's profile scripts
* This results in a fully activated environment; shell functions and all
-rw-r--r-- | src/conda.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conda.c b/src/conda.c index ff55f14..37a7793 100644 --- a/src/conda.c +++ b/src/conda.c @@ -222,7 +222,7 @@ int conda_activate(const char *root, const char *env_name) { // Fully activate conda and record its effect on the runtime environment char command[PATH_MAX * 3]; - snprintf(command, sizeof(command) - 1, "source %s; source %s; conda activate %s &>/dev/null; env -0", path_conda, path_mamba, env_name); + snprintf(command, sizeof(command) - 1, "set -a; source %s; source %s; conda activate %s &>/dev/null; env -0", path_conda, path_mamba, env_name); int retval = shell(&proc, command); if (retval) { // it didn't work; drop out for cleanup |