let deactivate_env ~conda_env () =
let prefix = (envs_dir ~conda_env // conda_env.name) in
KEDSL.Program.(
shf "[ ${CONDA_PREFIX-none} == \"%s\" ] && source %s || echo 'Doing nothing. The conda env is not active: %s'"
prefix (deactivate ~conda_env) prefix
)