amn*_*amn 4 unix shell default-settings macos
有人 chump 编辑了我的/etc/profile文件,我想将其恢复为系统默认值,因为我现在意识到我宁愿使用主目录中的文件覆盖需要覆盖的任何内容。你们能否指出一种方法来将文件内容重置为安装后的正确状态,或者引用原始内容以便我可以将这些内容粘贴到我的文件中?谢谢你。
PS 笨蛋当然是你的,从过去开始。
Dan*_*eck 13
OS X 10.8.3 上的内容来自Apple 的开源网站:
# System-wide .profile for sh(1)
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi
Run Code Online (Sandbox Code Playgroud)
对于更通用的解决方案(或者当您在 opensource.apple.com 上找不到它时),您可以使用Pacifist:它允许您打开 OS X 10.8 DVD 或磁盘映像(InstallESD.dmg,部分App Store 下载)并重新安装这些软件包中的单个文件。
