Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.7: Quickly unhide the User Library improved System 10.7
If you like to have the Library file visible under Lion, you'll find that every update resets the folder to hidden status. Here's a quick way to always change that back after an OSX update.

in Terminal type the command:

pico .profile

This opens your hidden profile file under OS X's Unix underpinnings. Type in:

alias library="chflags nohidden ~/Library"

Type Control+x and save the file.

At the terminal prompt type:

. .profile

That's period-space-periodprofile to active the changed .profile file.

Now, whenever you get a new Lion update, all you have to do to unhide the Library file is to open the Terminal and type the word 'library' and then press the Enter key, and your Library file will be back the way you want it.

[crarko adds: This takes the method given in this earlier hint and makes it a bit easier to remember and use.]
    •    
  • Currently 2.83 / 5
  You rated: 1 / 5 (12 votes cast)
 
[7,148 views]  

10.7: Quickly unhide the User Library improved | 19 comments | Create New Account
Click here to return to the '10.7: Quickly unhide the User Library improved' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.7: Quickly unhide the User Library improved
Authored by: diamondsw on Oct 20, '11 08:28:18AM

This would be much better done as a LaunchDaemon. If you still have to open a terminal and run a command, then there's nothing quick about it.



[ Reply to This | # ]
10.7: Quickly unhide the User Library improved
Authored by: laughlin on Oct 20, '11 08:41:03AM

Why go through all of that when you can just click go in the finder and press the option button down and it appears in the list?



[ Reply to This | # ]
10.7: Quickly unhide the User Library improved
Authored by: lingmonkey on Oct 20, '11 09:02:53AM
Why not just create a symlink?
ln -s ~/Library ~/Libraryfolder


[ Reply to This | # ]
10.7: Quickly unhide the User Library improved
Authored by: lithoman on Oct 20, '11 09:04:06AM

I have an alias of ~/Library on my desktop, who needs it visible in my home folder?



[ Reply to This | # ]
10.7: Quickly unhide the User Library improved
Authored by: wallybear on Oct 20, '11 09:17:16AM

I simply added an alias of Library in my home folder, and that suffices.



[ Reply to This | # ]
10.7: Quickly unhide the User Library improved
Authored by: robJ on Oct 20, '11 09:29:41AM

I run this AppleScript from the FastScripts menu but it could easily be run by other script runners. It will toggle the visibility of ~/Library. I rarely have Terminal running so this is much quicker for me.

set lib_folder to path to library folder from user domain
set lib_visible to (visible of (info for lib_folder))

if lib_visible is false then
do shell script "chflags nohidden ~/Library/"
else
do shell script "chflags hidden ~/Library/"
end if

try
tell application "Finder" to update front window
end try



[ Reply to This | # ]
10.7: Quickly unhide the User Library improved
Authored by: Zettt on Oct 23, '11 02:35:38AM

I’ve changed this script slightly, because the AppleScript method to find an item’s “visibile” state was running very very slowly. I’m using a shell script instead.

set lib_visible to do shell script "ls -Ol ~ | grep \"Library\"" as text
 
if lib_visible contains "hidden" then
I've also added this script to my LaunchBar/Alfred/Keyboard Maestro script repository if you don't mind.

[ Reply to This | # ]
10.7: Quickly unhide the User Library improved
Authored by: robJ on Oct 25, '11 06:13:04AM

Nope, I don't mind at all and I've adopted your mod.

Edited on Oct 25, '11 06:17:53AM by robJ



[ Reply to This | # ]
10.7: Quickly unhide the User Library improved
Authored by: ChaChi on Oct 20, '11 09:39:18AM

As I visit this folder quite often... I just opened the Library Folder via "Go To Folder..." and dragged it to the Sidebar Favorites. No need for any extra alias files or the like.



[ Reply to This | # ]
10.7: Quickly unhide the User Library improved
Authored by: MacJazz on Oct 20, '11 09:57:28AM

OR you could just hold the option/alt key, select Library from the Go Menu and then drag the folder over to the sidebar. No need to unhide, no worries about updates re-hiding, and the your ~/Library folder is available with just one click any time you open a Finder window.



[ Reply to This | # ]
10.7: Quickly unhide the User Library improved
Authored by: lihtox on Oct 20, '11 09:59:01AM
I think you could also just put
chflags nohidden ~/Library
in the .profile file, and then all you'll have to do is open the Terminal window. This changes the status of the folder every time you open the terminal, but I don't think that would cause any difficulties or overhead. But yes, the other options mentioned here are all good too. :)

[ Reply to This | # ]
10.7: Quickly unhide the User Library improved
Authored by: slb on Oct 20, '11 11:14:24AM

Finder. Option-Go Menu, Library appears.
Or, as was already posted, drag it to your sidebar and it's there.
None of the commands needed, although sure, they're fun to learn...



[ Reply to This | # ]
10.7: Quickly unhide the User Library improved
Authored by: leamanc on Oct 20, '11 12:19:32PM

Yeah, this is pretty darn easy. Not sure why anyone would go through the bother of making a script or opening Terminal, or why they "need" it to be visible all the time.

Sure, I need to get in my Library folder from time to time, but I know about a dozen ways to get into it when I need it, so why bother with all this extraneous stuff?



[ Reply to This | # ]
10.7: Quickly unhide the User Library improved
Authored by: baltwo on Oct 20, '11 02:50:08PM

Because most of us don't want to remember any of that stuff and also don't want Mother Apple protecting us from ourselves. The rationale to hide user's Libraries, also applies to the the root-level Library and System folders, but they neglected to hide those.



[ Reply to This | # ]
10.7: Quickly unhide the User Library improved
Authored by: scott721 on Oct 20, '11 05:17:21PM

If you simply put an alias of the Library folder in the Finder's sidebar it will persist through the various updates.



[ Reply to This | # ]
10.7: Quickly unhide the User Library improved
Authored by: zeniam1 on Oct 21, '11 01:03:38AM

Anyone know if a Disk Utility "repair permissions" action also resets this? Just curious. I too simply have a Finder sidebar item for ~/Library. Works great.



[ Reply to This | # ]
10.7: Quickly unhide the User Library improved
Authored by: JayG on Oct 21, '11 05:01:59AM

I have found using an app like BetterTouchTool to set a keyboard shortcut (I use one of the function keys above the numeric keypad) to open the folder is very convenient and a lot less hassle than other methods. I've been doing that since Snow Leopard and it doesn't get broken. It also works regardless of what app you're in and you don't need to switch to the finder for the "go" menu method or to get at the sidebar.

Edited on Oct 21, '11 05:05:17AM by JayG



[ Reply to This | # ]
10.7: Quickly unhide the User Library improved
Authored by: TonyT on Oct 21, '11 08:54:18AM

Useless



[ Reply to This | # ]
10.7: Quickly unhide the User Library improved
Authored by: benwiggy on Nov 04, '11 04:13:05AM

I find it most useful to maintain a text file of all the default write commands that I've set, and then run that as a Unix script whenever needed.



[ Reply to This | # ]