Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Is there a way to deal with initializing conda correctly across multiple shells? #434

@rdauria

Description

@rdauria

As this is perhaps a feature request I will chance posting it here and not on https://sourceforge.net/projects/modules/lists/modules-interest.

When creating a module file for anaconda invariably we need to request users to also source a conda shell script that varies according to the user shell, i.e.:

# SH bases shells:
module load anconda
source $CONDA_DIR/etc/profile.d/conda.sh

or:

# CSH based shells:
module load anaconda
source $CONDA_DIR/etc/profile.d/conda.csh

since the file to be sourced are different enough using either sh-to-mod or source-sh would require that the modulefile first check on the user SHELL and branch out accordingly. Is this possible?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions