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!