#----------------------------------------------------------------------#
# system-wide bashrc                                                   #
# functions and settings for sh-derivative shells                      #
#----------------------------------------------------------------------#

# module initialization
#
case "$0" in
          -sh|sh|*/sh)	modules_shell=sh ;;
       -ksh|ksh|*/ksh)	modules_shell=ksh ;;
       -zsh|zsh|*/zsh)	modules_shell=zsh ;;
    -bash|bash|*/bash)	modules_shell=bash ;;
esac
#eval "module() { eval \`/usr/share/Pmodules/libexec/Modules\$MODULE_VERSION/bin/modulecmd $modules_shell \$*\`; }"
eval "module() { eval \`/usr/share/Pmodules/libexec/modulecmd $modules_shell \$*\`; }"

unset modules_shell

#----------------------------------------------------------------------#
# set this if bash exists on your system and to use it
# instead of sh - so per-process dot files will be sourced.
#----------------------------------------------------------------------#

sh() { bash "$@"; }

#----------------------------------------------------------------------#
# further system customizations can be added here
#
