How to keep ~/Library visible in (Mountain) Lion

settings

Starting on Lion, Apple decided to annoy the users hiding the ~Library directory.

I was forced to type this on terminal to bring it back:

sudo chflags nohidden ~/Library

the problem is that every new OS update makes the folder hidden again, forcing me to type the command every time.

Is there a way to make it read-only so Apple cannot change it back?

Best Answer

If you don't want to add a login item, you could also save this as ~/Library/LaunchAgents/com.stackexchange.apple.66594.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN
http://www.apple.com/DTDs/PropertyList-1.0.dtd>
<plist version="1.0">
<dict>
    <key>EnableGlobbing</key>
    <true/>
    <key>Label</key>
    <string>com.stackexchange.apple.66594</string>
    <key>ProgramArguments</key>
    <array>
        <string>chflags</string>
        <string>nohidden</string>
        <string>~/Library/</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
</dict>
</plist>