aboutsummaryrefslogtreecommitdiff
path: root/trashrm
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2022-02-08 23:10:44 +0100
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2022-02-08 23:10:44 +0100
commit547311be5f6d90f36022a6e5e6fdbfb26862fd75 (patch)
treeac57b1207aab110894cfeb3e1bada0eaefe79629 /trashrm
parenta0645882e0794360620ee5631649a1d19439110d (diff)
downloadscripts-547311be5f6d90f36022a6e5e6fdbfb26862fd75.tar.gz
scripts-547311be5f6d90f36022a6e5e6fdbfb26862fd75.zip
Unified trash scripts.
Diffstat (limited to '')
-rwxr-xr-xtrashrm9
1 files changed, 0 insertions, 9 deletions
diff --git a/trashrm b/trashrm
deleted file mode 100755
index 27cd724..0000000
--- a/trashrm
+++ /dev/null
@@ -1,9 +0,0 @@
1#!/bin/sh
2
3# Move files to a trash folder
4
5trashfolder=${TRASH:-$XDG_DATA_HOME/mytrash}
6thisfolder="$trashfolder/$(date +'%Y-%m-%d-%s')"
7
8mkdir -p "$thisfolder"
9mv "$@" "$thisfolder"

Generated with cgit - Back to sebastiano.tronto.net