/usr/share/Modules/init
NameSizeModeActions
ksh-functions/-0755rm
zsh-functions/-0755rm
bash17420644editdlrm
bash_completion128280644editdlrm
cmake12300644editdlrm
csh2320644editdlrm
fish8670644editdlrm
fish_completion133150644editdlrm
ksh17400644editdlrm
lisp32300644editdlrm
perl.pm7640644editdlrm
profile.csh1090644editdlrm
profile.sh4790644editdlrm
python.py11690644editdlrm
r.R10050644editdlrm
ruby.rb8830644editdlrm
sh21290644editdlrm
tcl11240644editdlrm
tcsh2330644editdlrm
tcsh_completion79690644editdlrm
zsh20410644editdlrm
Edit: /usr/share/Modules/init/profile.sh (479B)
# shellcheck shell=sh # get current shell name by querying shell variables or looking at parent # process name if [ -n "${BASH:-}" ]; then if [ "${BASH##*/}" = 'sh' ]; then shell='sh' else shell='bash' fi elif [ -n "${ZSH_NAME:-}" ]; then shell=$ZSH_NAME else shell=$(/usr/bin/basename "$(/usr/bin/ps -p $$ -ocomm=)") fi if [ -f "/usr/share/Modules/init/$shell" ]; then . "/usr/share/Modules/init/$shell" else . '/usr/share/Modules/init/sh' fi