I'm migrating to OSX and need to figure out when to keep my scripts and libraries. I have code in Perl and Python, and libraries I've written in both languages. I am the only user of this machine so I imagine the difference between, ~/bin/ and /usr/local/bin/ is less clear than on a multi-user machine.
I'm not sure what the correct layout of such files is under Unix (even after poking around, e.g., here) and even less so under OSX's nonstandard arrangement.
Where should I put the scripts that I actually run? In ~/bin/? In /usr/local/bin/? Should I segregate the Python and Perl in, say, ~/bin/python/ and ~/bin/perl/?
And (harder I think) where should I put the libraries? In ~/lib/? In ~/lib/python/ and lib/perl/? Or somewhere in ~/Library/?