4

Someone chump edited my /etc/profile file, and I want to revert it to the system default, because I have now realized that I would rather override whatever needs to be overriden using files in my home directory. Can you guys point me to a way to reset the file contents to exactly how these were right after installation, or quote the original contents so I can paste these in my file? Thank you.

P.S. The chump is of course yours truly, from time past.

13

Contents on OS X 10.8.3 from Apple's Open Source web site:

# 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

For a more general solution (or when you don't find it on opensource.apple.com), you can use Pacifist: It allows you to open the OS installer package on the OS X 10.8 DVD or disk image (InstallESD.dmg, part of the App Store download) and reinstall single files from these packages.

Pacifist Screenshot

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.