4 ms·
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 -delet
by majewsky 8y ago
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
- futureastronaut 8y agoThank 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 :)