Make ZSH setup more flexible

Hi,

I followed the guide to setup zsh, and updated it to work for the current environment.

~/.bash_profile:

export SHELL=/apps/spack/2406/apps/linux-rocky8-x86_64_v3/gcc-13.3.0/zsh-5.9-3r53tef/bin/zsh
exec /apps/spack/2406/apps/linux-rocky8-x86_64_v3/gcc-13.3.0/zsh-5.9-3r53tef/bin/zsh -l

~/.zshrc

source /apps/spack/2406/apps/linux-rocky8-x86_64_v3/gcc-13.3.0/lmod-8.7.39-lrlj7hp/lmod/lmod/init/bash
export MODULEPATH=/apps/lmod/modules/openmpi/5.0.5/gcc/13.3.0:/apps/spack/2406/apps/lmod/linux-rocky8-x86_64/openmpi/5.0.5-mufqd73/gcc/13.3.0:/apps/lmod/modules/gcc/13.3.0:/apps/spack/2406/apps/lmod/linux-rocky8-x86_64/gcc/13.3.0:/apps/lmod/modules/compilers:/apps/lmod/modules/utils:/apps/lmod/modules/misc

Is there a better way to do this that does not hard code the version? I’m worried things will break when versions are updated.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.