Jump to content

Recommended Posts

Thanks rockitude.

Whats the difference to the command ?

mv ~/Downloads/* ~/.trash/

 

I was using this before.

 

And maybe you could include additionally a command to empty the trash in the same way by keyword?

 

At the moment I use 


rm -Rf ~/.Trash/*
afplay /Users/Daniel/Dropbox/Alfred' '2/Alfred.alfredpreferences/workflows/user.workflow.3E5DC7E6-455E-4AFE-86BB-05954D9D1967/empty_trash.aif

 

 

As you can see I also use a custom Sound.

Link to comment
DIR="$HOME/Downloads"
rm -rf $DIR/*

DIR="$HOME/.Trash"
rm -rf $DIR/*

 

Because moving everything into the trash and then removing everything from the trash makes not so much sense, i cleanup both folders with the above script.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...