3 ms·
function rm(){ mv "@$" ~/.Trash }
by singularity2001 4y ago
function rm(){
mv "@$" ~/.Trash
}
- Amine_Ztn 4y agoThis was my initial idea but unfortunately there can be name conflicts, if two files or folders have the same name, this idea does not work anymore. Also, I wanted to be able to keep the initial path to restore the element directly where it was deleted.