Jump to content
Sign in to follow this  
rockitude

Empty Downloads Folder

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.

Share this post


Link to post
Guest
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.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  
×
×
  • Create New...