Setting up ZSH is extremely hard


ZSH is an extremely good replacement for bash and it helps in great productivity.
Setting up ZSH is extremely hard to do so since it does not have a compiled binary available.
It is widely used in the linux community.
I humbly request you to add it part of the modules.

I added a zsh module:

module load gcc/11.3.0 zsh/5.9

Try that out.

If you want to automate zsh setup when logging in, add the following to your ~/.bash_profile:

export SHELL=/spack/2206/apps/linux-centos7-x86_64_v3/gcc-11.3.0/zsh-5.9-eepz55r/bin/zsh
exec /spack/2206/apps/linux-centos7-x86_64_v3/gcc-11.3.0/zsh-5.9-eepz55r/bin/zsh -l

And you can comment out the bash stuff if you want.

To use the software modules when switching to zsh, in ~/.zshrc add the following lines:

source /spack/apps/lmod/8.2/init/bash
export MODULEPATH=/spack/apps/lmod/linux-centos7-x86_64/Core

Thanks dstrong.
this is extremely useful.