#----------------------------------------------------------------------# # 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 ;; -bash|bash|*/bash) modules_shell=bash ;; esac eval "module() { eval \`/usr/local/Modules/\$MODULE_VERSION/bin/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 #