Merge pull request #555 from mimoralea/master

Add mkcd and del functions
pull/591/head
Nils Winkler 2015-10-08 08:09:46 +02:00
commit 578e6bbe31
1 changed files with 8 additions and 0 deletions

View File

@ -196,3 +196,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;
}