From ca3f1baf80dac99e40677c46a196eaf29f2703ad Mon Sep 17 00:00:00 2001 From: Miguel Morales Date: Wed, 7 Oct 2015 15:55:38 -0500 Subject: [PATCH] Add del function to the base plugins --- plugins/available/base.plugin.bash | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/available/base.plugin.bash b/plugins/available/base.plugin.bash index accd3610..06c52f65 100644 --- a/plugins/available/base.plugin.bash +++ b/plugins/available/base.plugin.bash @@ -223,3 +223,11 @@ function buf () local filetime=$(date +%Y%m%d_%H%M%S) cp -a "${filename}" "${filename}_${filetime}" } + +function del() { + about 'move files to hidden folder in tmp, that gets cleared on each reboot' + param 'file or folder to be deleted' + example 'del ./file.txt' + group 'base' + mkdir -p /tmp/.trash && mv "$@" /tmp/.trash; +}