🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-15 00:11:59 | PHP 8.1.34
📂
/ (Root)
/
etc
/
profile.d
📍 /etc/profile.d
🔄 Refresh
✏️
Editing: modules.sh
Read Only
# 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
💾 Save Changes
❌ Cancel