/usr/share/Modules/init
NameSizeModeActions
ksh-functions/-0755rm
zsh-functions/-0755rm
bash41340644editdlrm
bash_completion114640644editdlrm
cmake19250644editdlrm
csh38740644editdlrm
fish17330644editdlrm
fish_completion96470644editdlrm
ksh41620644editdlrm
lisp32300644editdlrm
perl.pm11180644editdlrm
profile-compat.csh1970644editdlrm
profile-compat.sh3090644editdlrm
profile.csh1050644editdlrm
profile.sh4480644editdlrm
python.py15390644editdlrm
r.R9610644editdlrm
ruby.rb13790644editdlrm
sh40040644editdlrm
tcl10710644editdlrm
tcsh38800644editdlrm
tcsh_completion55210644editdlrm
zsh41510644editdlrm
Edit: /usr/share/Modules/init/profile.sh (448B)
# 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