# get current shell name by querying shell variables or looking at parent
if [ -n "${BASH:-}" ]; then
if [ "${BASH##*/}" = 'sh' ]; then
elif [ -n "${ZSH_NAME:-}" ]; then
shell=$(/usr/bin/basename $(/usr/bin/ps -p $$ -ocomm=))
if [ -f /usr/share/Modules/init/$shell ]; then
. /usr/share/Modules/init/$shell
. /usr/share/Modules/init/sh