Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

unalignedcoder

"Empty trash" command

It's great to have a "trash" feature, but of course we want to occasionally quickly empty that "trash".

What would be a quick custom command to do that?

I believe this removes everything including the directory itself I'm right-clicking on:

test "!?Do you really want to delete ?no!" == "yes" && rm -rf !&


...but it would be great if I didn't have to delete and re-create the directory (since WinSCP doesn't automatically create it, when I delete a file and a /tmp directory is not present).

Wish-thinking, it would also be great to have a conditional command where the "Empty trash" appears only when I right click on my trash folder.