✏️ 编辑:profile.sh
路径:
/usr/share/Modules/init/profile.sh
大小:479 B · 修改:2025-09-21 09:06:14 · 权限:0644 · 只读(保存会失败)
← 返回目录
👁 查看
⬇ 下载
# 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
💾 保存
取消
保存为 UTF-8,换行统一为 LF