You are not logged in.
Pages: 1
I want to make an alias so I can type in "delete" or "trash" and be able to mv files into the KDE trash (~/.local/share/Trash).
The problem is, I'm not even sure how KDE really "trashes" things, because when I move a file into ~/.local/share/Trash or ~/.local/share/Trash/files it can't actually be viewed by the GUI, almost like it was never trashed.
The only way I have been able to trash things thus far is via GUI, and it would be really helpful to be able to do this command line as well, and have all my trash organized in one location.
Any suggestions?
Offline
When you choose "move to wastebin", KDE creates an info file with the same name. I don't know how one would get the Trash to show files that the GUI didn't explicitly tell it that it was there. Anyway if you just want a wrapper:
#!/bin/bash <or function>
DATE=`date +%d-%m-%y`
if [ ! -d ${HOME}/.trash/$DATE ]; then
mkdir -p ${HOME}/.trash/$DATE
fi
for i in $@; do
mv $i ${HOME}/.trash/$DATE
doneLast edited by schivmeister (2008-03-16 16:00:55)
I need real, proper pen and paper for this.
Offline
Pages: 1