Better handle lmod in bashrc.kuba
This commit is contained in:
31
.bashrc.kuba
31
.bashrc.kuba
@@ -83,30 +83,15 @@ fi
|
||||
# Activate python virtualenv
|
||||
source_existing ~/.python-venv.kuba/bin/activate
|
||||
|
||||
# Source lmod module setup
|
||||
source_existing /usr/share/lmod/lmod/init/profile
|
||||
|
||||
complete -o default -C "python ~/.python-venv.kuba/lib/python3.9/site-packages/myqueue/complete.py" mq
|
||||
complete -o bashdefault -C snakemake-bash-completion snakemake
|
||||
|
||||
case $(hostname) in
|
||||
vera* )
|
||||
if [ -z "$DONT_LOAD_LMOD" ]; then
|
||||
if [ -e /usr/share/lmod/lmod/init/profile ]; then
|
||||
# Source lmod module setup
|
||||
. /usr/share/lmod/lmod/init/profile
|
||||
|
||||
module use "$HOME/.modules.kuba/"
|
||||
module load iccifort/2019.5.281
|
||||
module load impi/2018.5.288
|
||||
module load imkl/2019.5.281
|
||||
module load Python/3.7.4
|
||||
module load clusterappl
|
||||
module load slurm-aliases
|
||||
;;
|
||||
tetralith* )
|
||||
module use "$HOME/.modules.kuba/"
|
||||
module load Python/3.6.3-anaconda-5.0.1-nsc1
|
||||
module load clusterappl
|
||||
;;
|
||||
* )
|
||||
if [ -e /usr/share/lmod/lmod/init/profile ]; then
|
||||
module use "$HOME/.modules.kuba/"
|
||||
module use "$HOME/git/auto-venv-setup/lmod-modules/"
|
||||
fi
|
||||
esac
|
||||
module use "$HOME/git/auto-venv-setup/lmod-modules/"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user