diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-01-07 18:21:48 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-01-07 18:21:48 +0100 |
| commit | b11656aaa376a50c8027ea7ae81735257e9b6feb (patch) | |
| tree | 0b30785cfb35207d39d1969c4f79c58078408de8 /trashempty | |
| parent | a6e7b27fd1df9657acc81ffc81a1c7918650d9df (diff) | |
| download | scripts-b11656aaa376a50c8027ea7ae81735257e9b6feb.tar.gz scripts-b11656aaa376a50c8027ea7ae81735257e9b6feb.zip | |
Added trash utilities
Diffstat (limited to 'trashempty')
| -rwxr-xr-x | trashempty | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/trashempty b/trashempty new file mode 100755 index 0000000..f13df45 --- /dev/null +++ b/trashempty | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Empty trash (see trashrm) | ||
| 4 | |||
| 5 | trashfolder=${TRASH:-$XDG_DATA_HOME/mytrash} | ||
| 6 | |||
| 7 | rm -r $trashfolder/* | ||
