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.

| |

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`

if [ "${BASH-no}" != "no" ]; then
        [ -r /etc/bashrc ] && . /etc/bashrc

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

| |

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.