My Blog

All about my activities, Ideas and everything.

Category: Mac OSX

Mac OSX: override rm to delete files to .Trash

So silly of me I have just “accidentally” deleted my home directory T_T. There is a way to help that by override rm command to move file to .Trash. Just copy this code to ~/.bash_profile and restart your terminal. 123456789101112131415function rm () {   local path   for path in "$@"; do     # [...]

Mac OSX 10.6 Enabling MySQL, Apache2 and PHP.

Well I don’t know that I’m the only person on earth who has this problem. But I have some troubles to get MySQl, PHP and Apache2 work on my Macbook. Since I have been a windows user for 10 years, switch to Mac user is quite new for me. I use to install everything with [...]

Recursively delete file or folder from sub-directory

I used an example from deleting all .svn from sub-directory. 1rm -rf `find . -type d -name .svn`