Skip to content

Instantly share code, notes, and snippets.

@levigroker
Created September 7, 2012 16:30
Show Gist options
  • Save levigroker/3667585 to your computer and use it in GitHub Desktop.
Save levigroker/3667585 to your computer and use it in GitHub Desktop.
Shell script to change the flags on the user's Library directory so it appears in the Finder once again.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.levigroker.unhide_library</string>
<key>LingonWhat</key>
<string>/Users/levi/Library/Automation/unhide_library.sh</string>
<key>ProgramArguments</key>
<array>
<string>/Users/levi/Library/Automation/unhide_library.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
#!/bin/sh
chflags nohidden ~/Library/
@levigroker
Copy link
Author

Simple LaunchAgent to unhide the user Library directory every time at login.
Change paths and filenames to suit yourself.
The plist belongs in ~/Library/LaunchAgents/ and can be loaded into launchd by 'launchctl load ' or via Lingon (GUI interface for LaunchAgent management, available in the Mac App Store)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment