Useful Mac osx tips

After a recent hard disk failure I found myself hunting around for the various system config things and thought I’d blog it to ensure I knew where to look next time and to maybe save someone 5mins.

Backup Documents folder to Dropbox

An easy way to ensure you docs on mac are safe is to Create a Symlink from to Documents to a folder in Dropbox. Assuming you have Dropbox installed to the standard place in your home dir. Open the terminal type:
ln -s ~/Documents/ ~/Dropbox/MyMacDocs

That’s it, all done. You should she the files and folder start to sync

Add adb to Path so you can use it in the terminal

If like me your an android dev you know its useful to access adb from the terminal. Heres how…. Create a file called .profile in your user dir (~/ or /Users/<;>;/) Open the .profile file and add the following line:

export PATH=/Users/<;>;/android-sdk-macosx/platform-tools:$PATH

Now restart the terminal and type adb version

If all went ok you should get the following response Android Debug Bridge version 1.0.29

Show hidden files

Another useful thing todo on mac is to show hidden files. Open the terminal type:

defaults write AppleShowAllFiles YES

  • I forget you should run ‘killall Finder’ after executing defaults write AppleShowAllFiles YES