News for hackers. Stuff that matters.
Re:Stop Using `rm` in Bash. Use `del` by majewsky on Sunday March 17, 2019 @10:44AM (#19414265)
This does not work. The arguments to `del` get appended at the end, after `find`. You want this:

  del() { mv "$@" ~/.Trash/ && find ~/.Trash -mtime +30 -delete }
I also replaced the unnecessary exec by find's builtin -delete
Re:Stop Using `rm` in Bash. Use `del` by futureastronaut on Sunday March 17, 2019 @01:33PM (#19415156)
Thank you, it's painful to see people providing replacements for critical commands like `rm` without understanding basic shell features like aliases.

And just a reminder everybody please don't run random scripts you find on the internet.

P.S. you need a semicolon before the close brace :)